- complete the changes from the previous commit for the SDL backend

This commit is contained in:
Rachael Alexanderson 2019-04-07 06:59:34 -04:00
parent f4ea44b760
commit c3b927e502
2 changed files with 4 additions and 7 deletions

View file

@ -46,9 +46,6 @@ protected:
SDL_GLContext GLContext; SDL_GLContext GLContext;
void UpdateColors (); void UpdateColors ();
static const int MIN_WIDTH = 640;
static const int MIN_HEIGHT = 400;
}; };
#endif // __POSIX_SDL_GL_SYSFB_H__ #endif // __POSIX_SDL_GL_SYSFB_H__

View file

@ -245,7 +245,7 @@ SystemGLFrameBuffer::SystemGLFrameBuffer (void *, bool fullscreen)
if (Screen != NULL) if (Screen != NULL)
{ {
// enforce minimum size limit // enforce minimum size limit
SDL_SetWindowMinimumSize(Screen, MIN_WIDTH, MIN_HEIGHT); SDL_SetWindowMinimumSize(Screen, VID_MIN_WIDTH, VID_MIN_HEIGHT);
GLContext = SDL_GL_CreateContext(Screen); GLContext = SDL_GL_CreateContext(Screen);
if (GLContext != NULL) if (GLContext != NULL)
@ -340,10 +340,10 @@ int SystemGLFrameBuffer::GetClientHeight()
void SystemGLFrameBuffer::SetWindowSize(int w, int h) void SystemGLFrameBuffer::SetWindowSize(int w, int h)
{ {
if (w < MIN_WIDTH || h < MIN_HEIGHT) if (w < VID_MIN_WIDTH || h < VID_MIN_HEIGHT)
{ {
w = MIN_WIDTH; w = VID_MIN_WIDTH;
h = MIN_HEIGHT; h = VID_MIN_HEIGHT;
} }
win_w = w; win_w = w;
win_h = h; win_h = h;