Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzVideo.m @ 1487:dc6b59e925a2
Cleaning up warnings on MacOS X
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Mar 2006 06:33:21 +0000 |
parents | 376665398b25 |
children | 8d9bb0cf2c2a |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.m Wed Mar 08 18:30:12 2006 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.m Thu Mar 09 06:33:21 2006 +0000 @@ -682,7 +682,7 @@ return NULL; } - //[ qz_window setReleasedWhenClosed:YES ]; + /*[ qz_window setReleasedWhenClosed:YES ];*/ QZ_SetCaption(this, this->wm_title, this->wm_icon); [ qz_window setAcceptsMouseMovedEvents:YES ]; [ qz_window setViewsNeedDisplay:NO ]; @@ -759,7 +759,7 @@ int hOffset = [ window_view frame ].origin.x; - current->pixels += (vOffset * current->pitch) + hOffset * (qdbpp/8); + current->pixels = (Uint8 *)current->pixels + (vOffset * current->pitch) + hOffset * (qdbpp/8); } this->UpdateRects = QZ_UpdateRects; this->LockHWSurface = QZ_LockWindow; @@ -921,7 +921,7 @@ * a fullscreen resolution smaller than the hardware could supply * so SDL is centering it in a bigger resolution)... */ - dst = CGDisplayBaseAddress (display_id) + SDL_VideoSurface->offset; + dst = (Uint8 *)CGDisplayBaseAddress (display_id) + SDL_VideoSurface->offset; src = current_buffer + SDL_VideoSurface->offset; len = SDL_VideoSurface->w * SDL_VideoSurface->format->BytesPerPixel; h = SDL_VideoSurface->h; @@ -1025,7 +1025,7 @@ who supplied sample code for Carbon. */ -//#define TEST_OBSCURED 1 +/*#define TEST_OBSCURED 1*/ #if TEST_OBSCURED #include "CGS.h" @@ -1075,7 +1075,6 @@ CGSRect contentRect; int windowNumber; - //int isMainWindow; int firstDockIcon; int dockIconCacheMiss; int windowContentOffset; @@ -1106,7 +1105,6 @@ windowContentOffset = 0; windowNumber = [ window windowNumber ]; - //isMainWindow = [ window isMainWindow ]; /* The window list is sorted according to order on the screen */ count = 0;