diff options
Diffstat (limited to 'gui/theme.cpp')
-rw-r--r-- | gui/theme.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp index c8501c4f91..5355894c85 100644 --- a/gui/theme.cpp +++ b/gui/theme.cpp @@ -68,7 +68,7 @@ const Graphics::Font *Theme::loadFont(const char *filename) { return font; #ifdef USE_ZLIB - unzFile zipFile = unzOpen((_stylefile + ".zip").c_str()); + unzFile zipFile = unzOpen((getThemeFileName() + ".zip").c_str()); if (zipFile && unzLocateFile(zipFile, cacheFilename.c_str(), 2) == UNZ_OK) { unz_file_info fileInfo; unzOpenCurrentFile(zipFile); @@ -98,7 +98,7 @@ const Graphics::Font *Theme::loadFont(const char *filename) { #ifdef USE_ZLIB if (!font) { - unzFile zipFile = unzOpen((_stylefile + ".zip").c_str()); + unzFile zipFile = unzOpen((getThemeFileName() + ".zip").c_str()); if (zipFile && unzLocateFile(zipFile, filename, 2) == UNZ_OK) { unz_file_info fileInfo; unzOpenCurrentFile(zipFile); |