commit e63839de20c56649ce16adfe7e849735223ad130
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Jan 2 02:31:20 2011 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sun Jan 2 02:31:20 2011 +0000
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
---
src/i_video.c | 6 ++++++
1 file changed, 6 insertions(+)
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);