From 8e8919ec564bba01e22c81e3c90bd0f33bc30888 Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Mon, 18 Dec 2023 17:38:08 -0500 Subject: [PATCH] fix(SpeedoMeter): squished drawing on mobile phone (#2601) --- src/backend/looped/vehicle/speedo_meter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/looped/vehicle/speedo_meter.cpp b/src/backend/looped/vehicle/speedo_meter.cpp index b6c94fd9..3a079787 100644 --- a/src/backend/looped/vehicle/speedo_meter.cpp +++ b/src/backend/looped/vehicle/speedo_meter.cpp @@ -20,6 +20,10 @@ namespace big return; } + HUD::SET_TEXT_RENDER_ID(HUD::GET_DEFAULT_SCRIPT_RENDERTARGET_RENDER_ID()); + GRAPHICS::SET_SCRIPT_GFX_DRAW_BEHIND_PAUSEMENU(TRUE); + GRAPHICS::SET_SCRIPT_GFX_DRAW_ORDER(0); + HUD::SET_TEXT_FONT(2); HUD::SET_TEXT_SCALE(.9f, .9f); HUD::SET_TEXT_OUTLINE(); @@ -59,7 +63,7 @@ namespace big 1); } - GRAPHICS::SET_SCRIPT_GFX_DRAW_ORDER(1); + GRAPHICS::RESET_SCRIPT_GFX_ALIGN(); } };