diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/SkinUtils.cpp | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Winamp/SkinUtils.cpp')
-rw-r--r-- | Src/Winamp/SkinUtils.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Src/Winamp/SkinUtils.cpp b/Src/Winamp/SkinUtils.cpp new file mode 100644 index 00000000..50d46ddf --- /dev/null +++ b/Src/Winamp/SkinUtils.cpp @@ -0,0 +1,32 @@ +#include "main.h" +#define WA_DLG_IMPLEMENT +#include "wa_dlg.h" + +const char *GetFontName() +{ + if (config_custom_plfont && *playlist_custom_font) + return playlist_custom_font; + if (!Skin_PLFont[0]) + { + static char lang_font[128]; // benski> this is thread-safe because the language pack won't change (changing lang packs requires winamp restart) + return getString(IDS_PLFONT, lang_font, 128); + } + return Skin_PLFont; +} + +const wchar_t *GetFontNameW() +{ + if (config_custom_plfont && *playlist_custom_fontW) + return playlist_custom_fontW; + if (!Skin_PLFontW[0]) + { + static wchar_t lang_fontW[128]; // benski> this is thread-safe because the language pack won't change (changing lang packs requires winamp restart) + return getStringW(IDS_PLFONT, lang_fontW, 128); + } + return Skin_PLFontW; +} + +int GetFontSize() +{ + return ScaleY(config_pe_fontsize); +}
\ No newline at end of file |