projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a48a472
)
improved highlighting currently configured virtual button
author
Holger Schemel
<info@artsoft.org>
Wed, 18 Sep 2019 22:21:42 +0000
(
00:21
+0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 18 Sep 2019 22:21:42 +0000
(
00:21
+0200)
src/libgame/sdl.c
patch
|
blob
|
history
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index e13b6736e32999aec9e2574c7d3da7780dffe59c..5b43d6c8e54d48f62a8aad41750539a7bb8863c0 100644
(file)
--- 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)
{