X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=9aad2bca87dfa837891244e5099d004c97a7d629;hp=2120931852677da9e9a8e70cd4692aa341a77b18;hb=6dd55346a5d7a35592294313893c14e0641e15ae;hpb=cea00891778425e08ab69a972d97fe5ff4ef94d7 diff --git a/src/events.c b/src/events.c index 21209318..9aad2bca 100644 --- a/src/events.c +++ b/src/events.c @@ -649,12 +649,7 @@ void HandleWindowEvent(WindowEvent *event) int x, y; if (game_status == GAME_MODE_SETUP) - { - // save active virtual buttons (in case of just configuring them) - for (x = 0; x < MAX_GRID_XSIZE; x++) - for (y = 0; y < MAX_GRID_YSIZE; y++) - setup.touch.grid_button[nr][x][y] = overlay.grid_button[x][y]; - } + RedrawSetupScreenAfterScreenRotation(nr); nr = GRID_ACTIVE_NR();