fixed support for level specific information text messages
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 27 Oct 2024 18:24:17 +0000 (19:24 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 27 Oct 2024 18:24:19 +0000 (19:24 +0100)
Added special compatibility handling for "BD2K3" graphics set.

src/screens.c

index c0bd1a841cea1be3bf268774cf84ad4c20af7365..98fe6867d53b739b69bab92cc76985ea6dcd1ba3 100644 (file)
@@ -10764,6 +10764,10 @@ static void CreateScreenMenubuttons(void)
        // use "SX" here to place button (ignore draw offsets)
        x = SX + TILESIZE;
        y = SY + SYSIZE - 2 * TILESIZE;
+
+       // special compatibility handling for "BD2K3" graphics set
+       if (strPrefix(leveldir_current->identifier, "BD2K3"))
+         x = -1000;    // hide button (to prevent partially undrawing level set info button)
       }
     }