Mercurial > sdl-ios-xcode
comparison test/testoverlay2.c @ 1642:f1211a4b7380
Fixed bug #189
Clip the overlay destination rectangle to the screen area on X11
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 17 Apr 2006 05:38:33 +0000 |
parents | 4d3bb026cd16 |
children | 782fd950bd46 c121d94672cb |
comparison
equal
deleted
inserted
replaced
1641:5cf11b00b900 | 1642:f1211a4b7380 |
---|---|
524 if (paused) | 524 if (paused) |
525 { | 525 { |
526 resized=1; | 526 resized=1; |
527 } | 527 } |
528 break; | 528 break; |
529 case SDL_MOUSEBUTTONDOWN: | |
530 overlayrect.x = event.button.x - overlayrect.w/2; | |
531 overlayrect.y = event.button.y - overlayrect.h/2; | |
532 break; | |
529 case SDL_KEYDOWN: | 533 case SDL_KEYDOWN: |
530 if (event.key.keysym.sym == SDLK_SPACE) | 534 if (event.key.keysym.sym == SDLK_SPACE) |
531 { | 535 { |
532 paused=!paused; | 536 paused=!paused; |
533 break; | 537 break; |