Skip to content

Commit

Permalink
Fix two OSD rendering bugs (messages with text2 didn't render it, tex…
Browse files Browse the repository at this point in the history
…t alignment with icon)
  • Loading branch information
hrydgard committed Jun 27, 2023
1 parent aefedb1 commit 27847ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Common/System/System.h
Expand Up @@ -238,7 +238,7 @@ class OnScreenDisplay {
Show(type, text, "", duration_s, id);
}
void Show(OSDType type, const std::string &text, const std::string &text2, float duration_s = 0.0f, const char *id = nullptr) {
Show(type, text, "", "", duration_s, id);
Show(type, text, text2, "", duration_s, id);
}
void Show(OSDType type, const std::string &text, const std::string &text2, const std::string &icon, float duration_s = 0.0f, const char *id = nullptr);
void ShowAchievementUnlocked(int achievementID);
Expand Down
1 change: 1 addition & 0 deletions UI/OnScreenDisplay.cpp
Expand Up @@ -117,6 +117,7 @@ static void RenderOSDEntry(UIContext &dc, const OnScreenDisplay::Entry &entry, B
} else if (iconID.isValid()) {
// Atlas icon.
dc.DrawImageVGradient(iconID, foreGround, foreGround, Bounds(bounds.x + 2.5f, bounds.y + 2.5f, g_atlasIconSize, g_atlasIconSize));
iconSize = g_atlasIconSize;
}

// Make room
Expand Down

0 comments on commit 27847ab

Please sign in to comment.