mirror of https://github.com/AxioDL/metaforce.git
CFontRenderState: Collapse common switch cases in RefreshColor()
Same behavior, less code.
This commit is contained in:
parent
4daa8ac374
commit
a490eaf8ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue