- 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;
void UpdateColors ();
static const int MIN_WIDTH = 640;
static const int MIN_HEIGHT = 400;
};
#endif // __POSIX_SDL_GL_SYSFB_H__

View File

@ -245,7 +245,7 @@ SystemGLFrameBuffer::SystemGLFrameBuffer (void *, bool fullscreen)
if (Screen != NULL)
{
// 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);
if (GLContext != NULL)
@ -340,10 +340,10 @@ int SystemGLFrameBuffer::GetClientHeight()
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;
h = MIN_HEIGHT;
w = VID_MIN_WIDTH;
h = VID_MIN_HEIGHT;
}
win_w = w;
win_h = h;