improved highlighting currently configured virtual button
authorHolger Schemel <info@artsoft.org>
Wed, 18 Sep 2019 22:21:42 +0000 (00:21 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 18 Sep 2019 22:21:42 +0000 (00:21 +0200)
src/libgame/sdl.c

index e13b6736e32999aec9e2574c7d3da7780dffe59c..5b43d6c8e54d48f62a8aad41750539a7bb8863c0 100644 (file)
@@ -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)
       {