Commit
50a54138 (and the bugfix in the previous commit) prevent
drawing gadget buttons that are defined outside of viewports (like
playfield or door area), but are placed in the screen border area.
This was not supported in older versions of the redraw system (where
full-screen redraws where always done from a different back buffer).
Recent (SDL2 based) versions of the redraw system do support this, so
this limitation can be removed now to allow for gadget buttons placed
in the screen border area.
for (i = 0; i < NUM_GAME_BUTTONS; i++)
if (!on_tape || gamebutton_info[i].allowed_on_tape)
RedrawGadget(game_gadget[i]);
-
- // RedrawGadget() may have set REDRAW_ALL if buttons are defined off-area
- if (redraw_mask & REDRAW_ALL)
- redraw_mask = REDRAW_FIELD | REDRAW_DOORS;
}
static void SetGadgetState(struct GadgetInfo *gi, boolean state)
if (tape.show_game_buttons)
RedrawGameButtonsOnTape();
-
- // RedrawGadget() may have set REDRAW_ALL if buttons are defined off-area
- if (redraw_mask & REDRAW_ALL)
- redraw_mask = REDRAW_FIELD | REDRAW_DOORS;
}
void RedrawOrRemapTapeButtons(void)