From ade4627e7fe0f89d9fdb2e27f01444ad0aa2d41d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Oct 2008 17:10:49 +0000 Subject: disable resize on win32 --- src/client/video.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3