projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e301fcc
)
fixed potential bug with alpha blending when using virtual buttons
author
Holger Schemel
<info@artsoft.org>
Thu, 26 Apr 2018 17:12:26 +0000
(19:12 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 26 Apr 2018 23:14:15 +0000
(
01:14
+0200)
src/libgame/sdl.c
patch
|
blob
|
history
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 34c4004420f62e8b4ef947ece872dcca0656a569..07064a4bf65dbdaac7b3ecec8f8d7770a57fe97d 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-2992,7
+2992,7
@@
static void DrawTouchInputOverlay()
static int width = 0, height = 0;
static int alpha_max = SDL_ALPHA_OPAQUE / 2;
static int alpha_step = 5;
- static int alpha_last =
0
;
+ static int alpha_last =
-1
;
static int alpha = 0;
boolean active = (overlay.enabled && overlay.active);
@@
-3042,7
+3042,6
@@
static void DrawTouchInputOverlay()
SDL_FreeSurface(surface);
SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
- SDL_SetTextureAlphaMod(texture, alpha_max);
initialized = TRUE;
}