summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-02-24 22:12:11 +0000
committerbjarni <bjarni@openttd.org>2006-02-24 22:12:11 +0000
commit67fde581ab91e3ce8fa4c2b0f9320c0268f8356e (patch)
treeb3d4c75432b787a6d2ff6e60c8f4fbd6d236ffb6 /video
parent181853aff9da4dfd1dc60ddbf8fa9078d6d9eb29 (diff)
downloadopenttd-67fde581ab91e3ce8fa4c2b0f9320c0268f8356e.tar.xz
(svn r3671) -Code cleanup: fixed style and removed commented out code in video/cocoa_v.m
Diffstat (limited to 'video')
-rw-r--r--video/cocoa_v.m12
1 files changed, 1 insertions, 11 deletions
diff --git a/video/cocoa_v.m b/video/cocoa_v.m
index 654b5a9fb..a1b3650df 100644
--- a/video/cocoa_v.m
+++ b/video/cocoa_v.m
@@ -882,7 +882,6 @@ static void QZ_SetPortAlphaOpaque(void)
- (void)appDidHide:(NSNotification*)note
{
_cocoa_video_data.active = false;
-// DEBUG(driver, 1)("cocoa_v: appDidHide");
}
@@ -900,7 +899,6 @@ static void QZ_SetPortAlphaOpaque(void)
[ self restoreCachedImage ];
_cocoa_video_data.active = true;
-// DEBUG(driver, 1)("cocoa_v: appDidUnhide");
}
@@ -932,25 +930,21 @@ static void QZ_SetPortAlphaOpaque(void)
- (void)windowDidBecomeKey:(NSNotification*)aNotification
{
_cocoa_video_data.active = true;
-// DEBUG(driver, 1)("cocoa_v: windowDidBecomeKey");
}
- (void)windowDidResignKey:(NSNotification*)aNotification
{
_cocoa_video_data.active = false;
-// DEBUG(driver, 1)("cocoa_v: windowDidResignKey");
}
- (void)windowDidBecomeMain:(NSNotification*)aNotification
{
_cocoa_video_data.active = true;
-// DEBUG(driver, 1)("cocoa_v: windowDidBecomeMain");
}
- (void)windowDidResignMain:(NSNotification*)aNotification
{
_cocoa_video_data.active = false;
-// DEBUG(driver, 1)("cocoa_v: windowDidResignMain");
}
@end
@@ -1483,9 +1477,7 @@ static void QZ_DrawScreen(void)
num_dirty_rects = _cocoa_video_data.num_dirty_rects;
/* Check if we need to do anything */
- if (_cocoa_video_data.num_dirty_rects == 0 ) {
- return;
- }
+ if (_cocoa_video_data.num_dirty_rects == 0 ) return;
if (num_dirty_rects >= MAX_DIRTY_RECTS) {
num_dirty_rects = 1;
@@ -1807,7 +1799,6 @@ static void QZ_WarpCursor(int x, int y)
CGWarpMouseCursorPosition(cgp);
/* Generate the mouse moved event */
-// SDL_PrivateMouseMotion(0, 0, x, y);
}
static void QZ_ShowMouse(void)
@@ -1848,7 +1839,6 @@ static void QZ_HideMouse(void)
/* Display the in game quit confirmation dialog */
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*) sender
{
-// DEBUG(driver, 1)("cocoa_v: applicationShouldTerminate");
QZ_AskQuit();