Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/test/testoverlay2.c Mon Apr 17 04:54:08 2006 +0000 +++ b/test/testoverlay2.c Mon Apr 17 05:38:33 2006 +0000 @@ -526,6 +526,10 @@ resized=1; } break; + case SDL_MOUSEBUTTONDOWN: + overlayrect.x = event.button.x - overlayrect.w/2; + overlayrect.y = event.button.y - overlayrect.h/2; + break; case SDL_KEYDOWN: if (event.key.keysym.sym == SDLK_SPACE) {