shithub: choc

Download patch

ref: e63839de20c56649ce16adfe7e849735223ad130
parent: fc09dbdf6703e62146a74a164be475ba965d00ab
author: Simon Howard <[email protected]>
date: Sat Jan 1 21:31:20 EST 2011

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

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1676,7 +1676,13 @@
     }
     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);