From a490eaf8ff3af8783ef8733397d711aeddd763f1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 7 Mar 2020 03:43:24 -0500 Subject: [PATCH] CFontRenderState: Collapse common switch cases in RefreshColor() Same behavior, less code. --- Runtime/GuiSys/CFontRenderState.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Runtime/GuiSys/CFontRenderState.cpp b/Runtime/GuiSys/CFontRenderState.cpp index 5c5ed1256..20b3b45fe 100644 --- a/Runtime/GuiSys/CFontRenderState.cpp +++ b/Runtime/GuiSys/CFontRenderState.cpp @@ -50,12 +50,10 @@ void CFontRenderState::RefreshColor(EColorType tp) { return; switch (x48_font->GetMode()) { case EColorType::Main: - if (!x64_colorOverrides[0]) - x0_drawStrOpts.x4_colors[0] = ConvertToTextureSpace(x54_colors[0]); - break; case EColorType::Outline: - if (!x64_colorOverrides[0]) + if (!x64_colorOverrides[0]) { x0_drawStrOpts.x4_colors[0] = ConvertToTextureSpace(x54_colors[0]); + } break; default: break;