(svn r21537) -Cleanup: Add a few sprinkles of coding style
This commit is contained in:
		@@ -470,7 +470,7 @@ bool WindowQuartzSubdriver::SetVideoMode(int width, int height)
 | 
				
			|||||||
		/* We already have a window, just change its size */
 | 
							/* We already have a window, just change its size */
 | 
				
			||||||
		[ this->window setContentSize:contentRect.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*/);
 | 
							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) {
 | 
							if (this->qzview != nil) {
 | 
				
			||||||
@@ -593,8 +593,6 @@ void WindowQuartzSubdriver::Draw(bool force_update)
 | 
				
			|||||||
		if (force_update) [ this->qzview displayIfNeeded ];
 | 
							if (force_update) [ this->qzview displayIfNeeded ];
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	//DrawResizeIcon();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	this->num_dirty_rects = 0;
 | 
						this->num_dirty_rects = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,6 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	virtual bool IsActive() { return active; }
 | 
						virtual bool IsActive() { return active; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
	void SetPortAlphaOpaque();
 | 
						void SetPortAlphaOpaque();
 | 
				
			||||||
	bool WindowResized();
 | 
						bool WindowResized();
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
@@ -397,13 +396,14 @@ bool WindowQuickdrawSubdriver::SetVideoMode(int width, int height)
 | 
				
			|||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		/* We already have a window, just change its size */
 | 
							/* We already have a window, just change its size */
 | 
				
			||||||
		[ this->window setContentSize:contentRect.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
 | 
							 * 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;
 | 
							height = contentRect.size.height;
 | 
				
			||||||
		[ this->qdview setFrameSize:contentRect.size ];
 | 
							[ this->qdview setFrameSize:contentRect.size ];
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Update again
 | 
						/* Update again */
 | 
				
			||||||
	this->window_width = width;
 | 
						this->window_width = width;
 | 
				
			||||||
	this->window_height = height;
 | 
						this->window_height = height;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user