summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2011-01-02 02:31:20 +0000
committerSimon Howard2011-01-02 02:31:20 +0000
commite63839de20c56649ce16adfe7e849735223ad130 (patch)
tree2d2803a63a626d1e0a76259a05408174664199b3
parentfc09dbdf6703e62146a74a164be475ba965d00ab (diff)
downloadchocolate-doom-e63839de20c56649ce16adfe7e849735223ad130.tar.gz
chocolate-doom-e63839de20c56649ce16adfe7e849735223ad130.tar.bz2
chocolate-doom-e63839de20c56649ce16adfe7e849735223ad130.zip
Turn off dynamic window resizing feature on OS X, as it adds an ugly
resize handle to the corner of the window that overlaps the view of the game. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2231
-rw-r--r--src/i_video.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 55fd21e1..cd5d2ace 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1676,7 +1676,13 @@ static void SetVideoMode(screen_mode_t *mode, int w, int h)
}
else
{
+ // In windowed mode, the window can be resized while the game is
+ // running. This feature is disabled on OS X, as it adds an ugly
+ // scroll handle to the corner of the screen.
+
+#ifndef __MACOSX__
flags |= SDL_RESIZABLE;
+#endif
}
screen = SDL_SetVideoMode(w, h, screen_bpp, flags);