comparison src/video/quartz/SDL_QuartzWindow.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 ef4a796e7f24
comparison
equal deleted inserted replaced
1486:9d77fc9d0ace 1487:dc6b59e925a2
142 int vOffset = [ qz_window frame ].size.height - 142 int vOffset = [ qz_window frame ].size.height -
143 newViewFrame.size.height - newViewFrame.origin.y; 143 newViewFrame.size.height - newViewFrame.origin.y;
144 144
145 int hOffset = newViewFrame.origin.x; 145 int hOffset = newViewFrame.origin.x;
146 146
147 SDL_VideoSurface->pixels += (vOffset * SDL_VideoSurface->pitch) + hOffset * (device_bpp/8); 147 SDL_VideoSurface->pixels = (Uint8 *)SDL_VideoSurface->pixels + (vOffset * SDL_VideoSurface->pitch) + hOffset * (device_bpp/8);
148 } 148 }
149 149
150 UnlockPortBits ( thePort ); 150 UnlockPortBits ( thePort );
151 } 151 }
152 } 152 }
175 - (void)appDidUnhide:(NSNotification*)note 175 - (void)appDidUnhide:(NSNotification*)note
176 { 176 {
177 /* restore cached image, since it may not be current, post expose event too */ 177 /* restore cached image, since it may not be current, post expose event too */
178 [ self restoreCachedImage ]; 178 [ self restoreCachedImage ];
179 179
180 //SDL_PrivateExpose (); 180 /*SDL_PrivateExpose ();*/
181 181
182 SDL_PrivateAppActive (1, SDL_APPACTIVE); 182 SDL_PrivateAppActive (1, SDL_APPACTIVE);
183 } 183 }
184 184
185 - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag 185 - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag