From 05d47fd06ba913ae710bbd93e79474aeb3027cde Mon Sep 17 00:00:00 2001 From: wehrlia <> Date: Wed, 21 Aug 2024 16:59:04 -0300 Subject: [PATCH 1/2] hw_draw.c: Don't draw anything if alphalevel > 12 --- src/hardware/hw_draw.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index a822d1cba..1bb294cff 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -333,8 +333,10 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p Surf.PolyColor.s.alpha = softwaretranstogl[V_GetHUDTranslucency(option)]; else if (alphalevel == 12) Surf.PolyColor.s.alpha = softwaretranstogl_hi[V_GetHUDTranslucency(option)]; - else + else if (alphalevel < 10) Surf.PolyColor.s.alpha = softwaretranstogl[10-alphalevel]; + else // alphalevel > 12 + return; HWD.pfnDrawPolygon(&Surf, v, 4, flags|PF_Modulated); } @@ -487,8 +489,10 @@ void HWR_DrawCroppedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t pscale, Surf.PolyColor.s.alpha = softwaretranstogl[V_GetHUDTranslucency(option)]; else if (alphalevel == 12) Surf.PolyColor.s.alpha = softwaretranstogl_hi[V_GetHUDTranslucency(option)]; - else + else if (alphalevel < 10) Surf.PolyColor.s.alpha = softwaretranstogl[10-alphalevel]; + else // alphalevel > 12 + return; HWD.pfnDrawPolygon(&Surf, v, 4, flags|PF_Modulated); } From d05202257b5d2176b5fcf1b38f89162c5814d99d Mon Sep 17 00:00:00 2001 From: wehrlia <> Date: Wed, 21 Aug 2024 17:00:14 -0300 Subject: [PATCH 2/2] K_DrawTypingNotifier: Remove V_HUDTRANS From V_DrawFixedPatch function call. --- src/k_hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_hud.cpp b/src/k_hud.cpp index 96d6e4d44..3d66bf52f 100644 --- a/src/k_hud.cpp +++ b/src/k_hud.cpp @@ -3835,7 +3835,7 @@ static void K_DrawTypingNotifier(fixed_t x, fixed_t y, player_t *p, INT32 flags) { if (p->cmd.flags & TICCMD_TYPING) { - V_DrawFixedPatch(x, y, FRACUNIT, V_HUDTRANS|V_SPLITSCREEN|flags, kp_talk, NULL); + V_DrawFixedPatch(x, y, FRACUNIT, V_SPLITSCREEN|flags, kp_talk, NULL); /* spacing closer with the last two looks a better most of the time */ K_DrawTypingDot(x + 3*FRACUNIT, y, 15, p, flags);