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 -----------------------------------------------
SDLGLFB::SDLGLFB (void *, int width, int height, int, int, bool fullscreen, bool bgra)
: DFrameBuffer (width, height, bgra)
: SDLBaseFB (width, height, bgra)
{
int i;

View file

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

View file

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