mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-03 08:55:42 -04:00
FullscreenUI: Ensure fonts are at least one pixel high
This commit is contained in:
parent
c03c4cb95a
commit
d416dbb461
@ -99,9 +99,9 @@ static void AddIconFonts(float size)
|
|||||||
|
|
||||||
bool UpdateFonts()
|
bool UpdateFonts()
|
||||||
{
|
{
|
||||||
const float standard_font_size = std::round(DPIScale(s_font_size));
|
const float standard_font_size = std::ceil(DPIScale(s_font_size));
|
||||||
const float medium_font_size = std::round(LayoutScale(LAYOUT_MEDIUM_FONT_SIZE));
|
const float medium_font_size = std::ceil(LayoutScale(LAYOUT_MEDIUM_FONT_SIZE));
|
||||||
const float large_font_size = std::round(LayoutScale(LAYOUT_LARGE_FONT_SIZE));
|
const float large_font_size = std::ceil(LayoutScale(LAYOUT_LARGE_FONT_SIZE));
|
||||||
|
|
||||||
if (g_standard_font && g_standard_font->FontSize == standard_font_size && medium_font_size &&
|
if (g_standard_font && g_standard_font->FontSize == standard_font_size && medium_font_size &&
|
||||||
g_medium_font->FontSize == medium_font_size && large_font_size && g_large_font->FontSize == large_font_size)
|
g_medium_font->FontSize == medium_font_size && large_font_size && g_large_font->FontSize == large_font_size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user