Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-16 17:10:49 +0000
committerStijn Buys <ingar@osirion.org>2008-10-16 17:10:49 +0000
commitade4627e7fe0f89d9fdb2e27f01444ad0aa2d41d (patch)
tree0414d47ff7c32a22bc9847fb966f64294cae6f58 /src
parentb87433d87147f88868bf848daf7eabc2d459e8c0 (diff)
disable resize on win32
Diffstat (limited to 'src')
-rw-r--r--src/client/video.cc9
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);