Mercurial > sdl-ios-xcode
comparison test/testalpha.c @ 3585:f8816ffa210b
Initial band-aids on SDL_GetMouseState() API breakage. More work to come.
Fixes Bugzilla #758.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 16 Dec 2009 19:50:51 +0000 |
parents | cf271ff76061 |
children |
comparison
equal
deleted
inserted
replaced
3584:41d01d70659c | 3585:f8816ffa210b |
---|---|
289 without being overwritten by the saved area behind the sprite. | 289 without being overwritten by the saved area behind the sprite. |
290 */ | 290 */ |
291 if (light != NULL) { | 291 if (light != NULL) { |
292 int x, y; | 292 int x, y; |
293 | 293 |
294 SDL_GetMouseState(0, &x, &y); | 294 SDL_GetMouseState(&x, &y); |
295 FlashLight(screen, light, x, y); | 295 FlashLight(screen, light, x, y); |
296 } | 296 } |
297 | 297 |
298 /* Move the sprite, bounce at the wall */ | 298 /* Move the sprite, bounce at the wall */ |
299 position.x += x_vel; | 299 position.x += x_vel; |