Set UI font when drawing OSD

Fixes #19680
This commit is contained in:
Cohee 2024-11-30 16:57:32 +02:00
parent d6b90933f8
commit 77d069e5e7

View File

@ -300,6 +300,7 @@ void OnScreenMessagesView::Draw(UIContext &dc) {
typeEdges[(size_t)OSDType::MESSAGE_CENTERED_WARNING] = ScreenEdgePosition::CENTER; typeEdges[(size_t)OSDType::MESSAGE_CENTERED_WARNING] = ScreenEdgePosition::CENTER;
typeEdges[(size_t)OSDType::MESSAGE_CENTERED_ERROR] = ScreenEdgePosition::CENTER; typeEdges[(size_t)OSDType::MESSAGE_CENTERED_ERROR] = ScreenEdgePosition::CENTER;
dc.SetFontStyle(dc.theme->uiFont);
dc.SetFontScale(1.0f, 1.0f); dc.SetFontScale(1.0f, 1.0f);
// First pass: Measure all the sides. // First pass: Measure all the sides.