test/testalpha.c
changeset 3585 f8816ffa210b
parent 2822 cf271ff76061
child 5307 89a8263374ac
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;