diff --git a/src/posix/sdl/sdlglvideo.cpp b/src/posix/sdl/sdlglvideo.cpp index 18f1edf16..576ca570b 100644 --- a/src/posix/sdl/sdlglvideo.cpp +++ b/src/posix/sdl/sdlglvideo.cpp @@ -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; diff --git a/src/posix/sdl/sdlglvideo.h b/src/posix/sdl/sdlglvideo.h index 7acb0fa1b..c3fde256c 100644 --- a/src/posix/sdl/sdlglvideo.h +++ b/src/posix/sdl/sdlglvideo.h @@ -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 diff --git a/src/posix/sdl/sdlvideo.cpp b/src/posix/sdl/sdlvideo.cpp index c88d688a5..8594eb648 100644 --- a/src/posix/sdl/sdlvideo.cpp +++ b/src/posix/sdl/sdlvideo.cpp @@ -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;