test/testoverlay2.c
changeset 1642 f1211a4b7380
parent 1439 4d3bb026cd16
child 1662 782fd950bd46
child 1895 c121d94672cb
--- 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)
                      {