summaryrefslogtreecommitdiff
path: root/src/video/cocoa/wnd_quickdraw.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/cocoa/wnd_quickdraw.mm')
-rw-r--r--src/video/cocoa/wnd_quickdraw.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video/cocoa/wnd_quickdraw.mm b/src/video/cocoa/wnd_quickdraw.mm
index 5d7ce0099..370ff3d00 100644
--- a/src/video/cocoa/wnd_quickdraw.mm
+++ b/src/video/cocoa/wnd_quickdraw.mm
@@ -166,7 +166,6 @@ public:
virtual bool IsActive() { return active; }
-
void SetPortAlphaOpaque();
bool WindowResized();
};
@@ -397,13 +396,14 @@ bool WindowQuickdrawSubdriver::SetVideoMode(int width, int height)
} else {
/* We already have a window, just change its size */
[ this->window setContentSize:contentRect.size ];
- /* Ensure frame height - title bar height >= view height */
- contentRect.size.height = Clamp(height, 0, [ this->window frame ].size.height - 22); // 22 is the height of title bar of window
+ /* Ensure frame height - title bar height >= view height
+ * The height of title bar of the window is 22 pixels */
+ contentRect.size.height = Clamp(height, 0, [ this->window frame ].size.height - 22);
height = contentRect.size.height;
[ this->qdview setFrameSize:contentRect.size ];
}
- // Update again
+ /* Update again */
this->window_width = width;
this->window_height = height;