From e8d2ca1f638151fdd1c572e2bd628df7c098f48b Mon Sep 17 00:00:00 2001 From: fickleheart Date: Sun, 1 Dec 2019 12:38:05 -0600 Subject: [PATCH] Fix kart HUD fadein --- src/hardware/hw_draw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index 4a0c0380..ba069420 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -293,9 +293,9 @@ void HWR_DrawFixedPatch(GLPatch_t *gpatch, fixed_t x, fixed_t y, fixed_t pscale, { FSurfaceInfo Surf; Surf.PolyColor.s.red = Surf.PolyColor.s.green = Surf.PolyColor.s.blue = 0xff; - if (alphalevel == 13) Surf.PolyColor.s.alpha = softwaretranstogl_lo[cv_translucenthud.value]; - else if (alphalevel == 14) Surf.PolyColor.s.alpha = softwaretranstogl[cv_translucenthud.value]; - else if (alphalevel == 15) Surf.PolyColor.s.alpha = softwaretranstogl_hi[cv_translucenthud.value]; + if (alphalevel == 13) Surf.PolyColor.s.alpha = softwaretranstogl_lo[hudtrans]; + else if (alphalevel == 14) Surf.PolyColor.s.alpha = softwaretranstogl[hudtrans]; + else if (alphalevel == 15) Surf.PolyColor.s.alpha = softwaretranstogl_hi[hudtrans]; else Surf.PolyColor.s.alpha = softwaretranstogl[10-alphalevel]; flags |= PF_Modulated; HWD.pfnDrawPolygon(&Surf, v, 4, flags); @@ -909,7 +909,7 @@ void HWR_DrawConsoleFill(INT32 x, INT32 y, INT32 w, INT32 h, UINT32 color, INT32 fy += ((float)BASEVIDHEIGHT * dupy)/2; if (options & V_HORZSCREEN) fx += ((float)BASEVIDWIDTH * dupx)/2; - + } if (fx >= vid.width || fy >= vid.height) @@ -1017,7 +1017,7 @@ void HWR_DrawFill(INT32 x, INT32 y, INT32 w, INT32 h, INT32 color) fy += ((float)BASEVIDHEIGHT * dupy)/2; if (color & V_HORZSCREEN) fx += ((float)BASEVIDWIDTH * dupx)/2; - + } if (fx >= vid.width || fy >= vid.height) @@ -1168,4 +1168,4 @@ boolean HWR_Screenshot(const char *pathname) return ret; } -#endif //HWRENDER \ No newline at end of file +#endif //HWRENDER