diff options
| author | Stijn Buys <ingar@osirion.org> | 2008-10-16 17:10:49 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2008-10-16 17:10:49 +0000 | 
| commit | ade4627e7fe0f89d9fdb2e27f01444ad0aa2d41d (patch) | |
| tree | 0414d47ff7c32a22bc9847fb966f64294cae6f58 | |
| parent | b87433d87147f88868bf848daf7eabc2d459e8c0 (diff) | |
disable resize on win32
| -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);  | 
