Changeset - r16794:58773de5b9dc
[Not reviewed]
master
0 2 0
planetmaker - 13 years ago 2010-12-18 21:54:09
planetmaker@openttd.org
(svn r21537) -Cleanup: Add a few sprinkles of coding style
2 files changed with 5 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/video/cocoa/wnd_quartz.mm
Show inline comments
 
@@ -470,7 +470,7 @@ bool WindowQuartzSubdriver::SetVideoMode
 
		/* 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 @@ void WindowQuartzSubdriver::Draw(bool fo
 
		if (force_update) [ this->qzview displayIfNeeded ];
 
	}
 

	
 
	//DrawResizeIcon();
 

	
 
	this->num_dirty_rects = 0;
 
}
 

	
src/video/cocoa/wnd_quickdraw.mm
Show inline comments
 
@@ -166,7 +166,6 @@ public:
 

	
 
	virtual bool IsActive() { return active; }
 

	
 

	
 
	void SetPortAlphaOpaque();
 
	bool WindowResized();
 
};
 
@@ -397,13 +396,14 @@ bool WindowQuickdrawSubdriver::SetVideoM
 
	} 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;
 

	
0 comments (0 inline, 0 general)