- fixed compilation of SDL backend

src/posix/sdl/sdlglvideo.cpp:358:10: error: ‘MIN_WIDTH’ is not a member of ‘Priv’
src/posix/sdl/sdlglvideo.cpp:358:33: error: ‘MIN_HEIGHT’ is not a member of ‘Priv’
src/posix/sdl/sdlglvideo.cpp:360:7: error: ‘MIN_WIDTH’ is not a member of ‘Priv’
src/posix/sdl/sdlglvideo.cpp:361:7: error: ‘MIN_HEIGHT’ is not a member of ‘Priv’
This commit is contained in:
alexey.lysiuk 2019-04-07 17:26:32 +03:00
parent 06c0aa911d
commit fb51b5d137

View file

@ -355,10 +355,10 @@ void SystemBaseFrameBuffer::ToggleFullscreen(bool yes)
void SystemBaseFrameBuffer::SetWindowSize(int w, int h)
{
if (w < Priv::MIN_WIDTH || h < Priv::MIN_HEIGHT)
if (w < VID_MIN_WIDTH || h < VID_MIN_HEIGHT)
{
w = Priv::MIN_WIDTH;
h = Priv::MIN_HEIGHT;
w = VID_MIN_WIDTH;
h = VID_MIN_HEIGHT;
}
win_w = w;
win_h = h;