fixed event handling on (not yet functional) virtual buttons setup screen
[rocksndiamonds.git] / src / screens.c
index 6d23dc804edd6e71a7133f436d212bc7bb277e75..1c1efa62b309d5a0482ec6ca513a6fc8b1baa3d2 100644 (file)
@@ -7205,11 +7205,13 @@ boolean ConfigureVirtualButtonsMain()
 
   FadeIn(REDRAW_FIELD);
 
+  SetOverlayShowGrid(TRUE);
+
   while (!finished)
   {
     Event event;
 
-    if (NextValidEvent(&event))
+    while (NextValidEvent(&event))
     {
       switch (event.type)
       {
@@ -7285,6 +7287,8 @@ boolean ConfigureVirtualButtonsMain()
     BackToFront();
   }
 
+  SetOverlayShowGrid(FALSE);
+
   return success;
 }