Mercurial > hg > openttd
changeset 16804:794803d9796f draft
(svn r21537) -Cleanup: Add a few sprinkles of coding style
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Sat, 18 Dec 2010 21:54:09 +0000 |
parents | edff0cfc144a |
children | bfdb1f045534 |
files | src/video/cocoa/wnd_quartz.mm src/video/cocoa/wnd_quickdraw.mm |
diffstat | 2 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -470,7 +470,7 @@ /* We already have a window, just change its size */ [ this->window setContentSize:contentRect.size ]; - // Ensure frame height - title bar height >= view height + /* 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*/); if (this->qzview != nil) { @@ -593,8 +593,6 @@ if (force_update) [ this->qzview displayIfNeeded ]; } - //DrawResizeIcon(); - this->num_dirty_rects = 0; }
--- a/src/video/cocoa/wnd_quickdraw.mm +++ b/src/video/cocoa/wnd_quickdraw.mm @@ -166,7 +166,6 @@ virtual bool IsActive() { return active; } - void SetPortAlphaOpaque(); bool WindowResized(); }; @@ -397,13 +396,14 @@ } 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;