Skip to content

Commit 9968e6f

Browse files
committed
Fix MenuWidget::DrawString
1 parent 85efd2b commit 9968e6f

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

LEGORacers/src/menu/widgets/menuwidget.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -312,20 +312,20 @@ void MenuWidget::DrawString(
312312
&m_color,
313313
p_unk0x18
314314
);
315+
} else {
316+
LegoS32 y = p_source->m_top;
317+
LegoS32 x = p_source->m_left;
318+
m_renderer->VTable0x6c(
319+
p_string,
320+
p_font,
321+
x,
322+
y,
323+
static_cast<LegoFloat>(p_source->m_right - x),
324+
static_cast<LegoFloat>(p_source->m_bottom - y),
325+
p_dest,
326+
0
327+
);
315328
}
316-
317-
LegoS32 y = p_source->m_top;
318-
LegoS32 x = p_source->m_left;
319-
m_renderer->VTable0x6c(
320-
p_string,
321-
p_font,
322-
x,
323-
y,
324-
static_cast<LegoFloat>(p_source->m_right - x),
325-
static_cast<LegoFloat>(p_source->m_bottom - y),
326-
p_dest,
327-
0
328-
);
329329
}
330330

331331
// FUNCTION: LEGORACERS 0x00472e40

0 commit comments

Comments
 (0)