From 1cb306ac875b830f5fec092ffab6e5a4b9913d9c Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 18 Jan 2024 02:06:04 -0800 Subject: [PATCH] HUD: replace 4P bumpers/prisons sticker with srb2::Draw version The color is one shade off, but we'll see if it matters. --- src/k_hud.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/k_hud.cpp b/src/k_hud.cpp index e3ed12f52..c1d01a725 100644 --- a/src/k_hud.cpp +++ b/src/k_hud.cpp @@ -3356,7 +3356,15 @@ static void K_drawKartBumpersOrKarma(void) } } - V_DrawScaledPatch(fx-2 + (flipflag ? (SHORT(kp_ringstickersplit[1]->width) - 3) : 0), fy, V_HUDTRANS|V_SLIDEIN|splitflags|flipflag, kp_ringstickersplit[0]); + { + using srb2::Draw; + int width = 39; + Draw(fx-1 + (flipflag ? width + 3 : 0), fy+1) + .flags(V_HUDTRANS|V_SLIDEIN|splitflags) + .align(flipflag ? Draw::Align::kRight : Draw::Align::kLeft) + .width(width) + .small_sticker(); + } fx += 2;