Fix linux compile errors

This commit is contained in:
Magnus Norddahl 2017-01-25 03:28:11 +01:00
parent a04699ec1c
commit eb2b5269f9
3 changed files with 5 additions and 2 deletions

View file

@ -326,7 +326,7 @@ bool SDLGLVideo::InitHardware (bool allowsoftware, int multisample)
// FrameBuffer implementation ----------------------------------------------- // FrameBuffer implementation -----------------------------------------------
SDLGLFB::SDLGLFB (void *, int width, int height, int, int, bool fullscreen, bool bgra) SDLGLFB::SDLGLFB (void *, int width, int height, int, int, bool fullscreen, bool bgra)
: DFrameBuffer (width, height, bgra) : SDLBaseFB (width, height, bgra)
{ {
int i; int i;

View file

@ -39,7 +39,10 @@ class SDLBaseFB : public DFrameBuffer
{ {
DECLARE_CLASS(SDLBaseFB, DFrameBuffer) DECLARE_CLASS(SDLBaseFB, DFrameBuffer)
public: public:
using DFrameBuffer::DFrameBuffer;
virtual SDL_Window *GetSDLWindow() = 0; virtual SDL_Window *GetSDLWindow() = 0;
friend class SDLGLVideo;
}; };
class SDLGLFB : public SDLBaseFB class SDLGLFB : public SDLBaseFB

View file

@ -110,7 +110,7 @@ void ScaleWithAspect (int &w, int &h, int Width, int Height)
// FrameBuffer implementation ----------------------------------------------- // FrameBuffer implementation -----------------------------------------------
SDLFB::SDLFB (int width, int height, bool bgra, bool fullscreen, SDL_Window *oldwin) SDLFB::SDLFB (int width, int height, bool bgra, bool fullscreen, SDL_Window *oldwin)
: DFrameBuffer (width, height, bgra) : SDLBaseFB (width, height, bgra)
{ {
int i; int i;