mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- complete the changes from the previous commit for the SDL backend
This commit is contained in:
parent
f4ea44b760
commit
c3b927e502
2 changed files with 4 additions and 7 deletions
|
@ -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__
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue