mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 04:41:39 +00:00
achievement_overlay: fix achievement name padding
This commit is contained in:
parent
b8ca2c49b0
commit
e4dd7f52c4
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ void AchievementOverlay::Draw()
|
||||||
auto fontSize = Scale(24);
|
auto fontSize = Scale(24);
|
||||||
auto headerSize = g_fntSeurat->CalcTextSizeA(fontSize, FLT_MAX, 0, strAchievementUnlocked);
|
auto headerSize = g_fntSeurat->CalcTextSizeA(fontSize, FLT_MAX, 0, strAchievementUnlocked);
|
||||||
auto bodySize = g_fntSeurat->CalcTextSizeA(fontSize, FLT_MAX, 0, strAchievementName);
|
auto bodySize = g_fntSeurat->CalcTextSizeA(fontSize, FLT_MAX, 0, strAchievementName);
|
||||||
auto maxSize = std::max(headerSize.x, bodySize.x);
|
auto maxSize = std::max(headerSize.x, bodySize.x) + Scale(5);
|
||||||
|
|
||||||
// Calculate image margins.
|
// Calculate image margins.
|
||||||
auto imageMarginX = Scale(25);
|
auto imageMarginX = Scale(25);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue