diff options
-rw-r--r-- | src/client/video.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/video.cc b/src/client/video.cc index d8ba316..7649449 100644 --- a/src/client/video.cc +++ b/src/client/video.cc @@ -103,7 +103,10 @@ bool init() if (r_fullscreen->value()) { flags = SDL_OPENGL | SDL_FULLSCREEN; } else { - flags = SDL_OPENGL | SDL_RESIZABLE; + flags = SDL_OPENGL; +#ifndef _WIN32 + flags |= SDL_RESIZABLE; +#endif } if(!SDL_SetVideoMode(width, height, bpp, flags )) { @@ -171,8 +174,8 @@ void resize(float w, float h) if (fullscreen) return; - if (h < 64) h = 64; - if (w < 64) w = 64; + if (w < 320) w = 320; + if (h < 200) h = 200; if (SDL_SetVideoMode(w, h, bpp, flags )) { render::resize(w, h); |