X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsdl.c;h=07064a4bf65dbdaac7b3ecec8f8d7770a57fe97d;hp=34c4004420f62e8b4ef947ece872dcca0656a569;hb=0bd8e1ee6077beacfa455dbe1e93aa9de726a797;hpb=e301fccc893622199878577ef6da460407aab11e diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index 34c40044..07064a4b 100644 --- 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; }