From: Holger Schemel Date: Wed, 18 Sep 2019 22:21:42 +0000 (+0200) Subject: improved highlighting currently configured virtual button X-Git-Tag: 4.1.4.0~12 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5d1f7067db786914303167fd036d18424dce413f;p=rocksndiamonds.git improved highlighting currently configured virtual button --- diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index e13b6736..5b43d6c8 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -2829,7 +2829,10 @@ static void DrawTouchInputOverlay_ShowGridButtons(int alpha) continue; if (grid_button == overlay.grid_button_highlight) - alpha_draw = alpha_highlight; + { + draw_outlined = FALSE; + alpha_draw = MIN((float)alpha_highlight * 1.5, SDL_ALPHA_OPAQUE); + } if (draw_pressed && overlay.grid_button_action & grid_button_action) {