diff --git a/test/gamepadutils.c b/test/gamepadutils.c index f458961007..9ddfff13fb 100644 --- a/test/gamepadutils.c +++ b/test/gamepadutils.c @@ -999,7 +999,7 @@ void RenderGamepadImage(GamepadImage *ctx) dst.y -= ctx->button_height / 2; dst.w = ctx->button_width; dst.h = ctx->button_height; - SDL_SetTextureAlphaMod(ctx->button_texture, (Uint8)(finger->pressure * SDL_ALPHA_OPAQUE)); + SDL_SetTextureAlphaMod(ctx->button_texture, (Uint8)((0.1f + (finger->pressure * 0.9f)) * SDL_ALPHA_OPAQUE)); SDL_RenderTexture(ctx->renderer, ctx->button_texture, NULL, &dst); SDL_SetTextureAlphaMod(ctx->button_texture, SDL_ALPHA_OPAQUE); }