diff options
author | Simon Howard | 2011-01-02 02:31:20 +0000 |
---|---|---|
committer | Simon Howard | 2011-01-02 02:31:20 +0000 |
commit | e63839de20c56649ce16adfe7e849735223ad130 (patch) | |
tree | 2d2803a63a626d1e0a76259a05408174664199b3 | |
parent | fc09dbdf6703e62146a74a164be475ba965d00ab (diff) | |
download | chocolate-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.c | 6 |
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); |