fixed graphical responsiveness of gadgets (mainly in editor)
[rocksndiamonds.git] / src / libgame / gadgets.c
index 9ff99690e96a1f3438a9cc1b4dca79747beb6a0b..6200c9dc3da22291d19e086f1c5acdf99685e4d4 100644 (file)
@@ -704,6 +704,10 @@ static void DrawGadget(struct GadgetInfo *gi, boolean pressed, boolean direct)
       return;
   }
 
+  // do not use direct gadget drawing anymore; this worked as a speed-up once,
+  // but would slow things down a lot now the screen is always fully redrawn
+  direct = FALSE;
+
   if (direct)
   {
     BlitBitmap(drawto, window,