fixed graphical bugs when using background graphics on menu screens
[rocksndiamonds.git] / src / tools.c
index 2fdcd0b8c7c265ff93ba1cfd2b934df486e683e0..cc08a6690f133a6675e83312b26d43b200221302 100644 (file)
@@ -5580,8 +5580,8 @@ unsigned int MoveDoor(unsigned int door_state)
 
        if (!door_panel_drawn[door_index])
        {
-         ClearRectangle(drawto, door_rect->x, door_rect->y,
-                        door_rect->width, door_rect->height);
+         ClearRectangleOnBackground(drawto, door_rect->x, door_rect->y,
+                                    door_rect->width, door_rect->height);
 
          door_panel_drawn[door_index] = TRUE;
        }