From eef5fa3d94d1194b6540e87ef61b82b363817433 Mon Sep 17 00:00:00 2001 From: Kokusho Date: Sun, 8 Sep 2013 01:18:46 +0200 Subject: [PATCH 1/2] linux qt build failed fix ( Issue 3599 ) simple fix based on NativeApp.cpp --- Qt/QtHost.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Qt/QtHost.cpp b/Qt/QtHost.cpp index c1ca575fd6..650a4ddc55 100644 --- a/Qt/QtHost.cpp +++ b/Qt/QtHost.cpp @@ -359,9 +359,15 @@ void NativeInitGraphics() theme.checkOn = I_CHECKEDBOX; theme.checkOff = I_SQUARE; - ui_theme.uiFont = UBUNTU24; - ui_theme.uiFontSmall = UBUNTU24; - ui_theme.uiFontSmaller = UBUNTU24; +#ifdef _WIN32 + ui_theme.uiFont = UI::FontStyle(UBUNTU24, g_Config.sFont.c_str(), 22); + ui_theme.uiFontSmall = UI::FontStyle(UBUNTU24, g_Config.sFont.c_str(), 15); + ui_theme.uiFontSmaller = UI::FontStyle(UBUNTU24, g_Config.sFont.c_str(), 12); +#else + ui_theme.uiFont = UI::FontStyle(UBUNTU24, "", 20); + ui_theme.uiFontSmall = UI::FontStyle(UBUNTU24, "", 14); + ui_theme.uiFontSmaller = UI::FontStyle(UBUNTU24, "", 11); +#endif ui_theme.checkOn = I_CHECKEDBOX; ui_theme.checkOff = I_SQUARE; ui_theme.whiteImage = I_SOLIDWHITE; From 8c811009b0d61fa5fd8c8835e9bbfb351fb6a38b Mon Sep 17 00:00:00 2001 From: Kokusho Date: Sun, 8 Sep 2013 01:37:02 +0200 Subject: [PATCH 2/2] fix zlib compilation error on ubuntu 13.04 if -lz isn't the last parameter occurs a compilation error --- Qt/PPSSPP.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Qt/PPSSPP.pro b/Qt/PPSSPP.pro index 3ffef25dcb..b296777795 100755 --- a/Qt/PPSSPP.pro +++ b/Qt/PPSSPP.pro @@ -27,7 +27,7 @@ win32 { LIBS += -lCore -lCommon -lNative -lwinmm -lws2_32 } linux { - LIBS += -L. -lCore -lCommon -lNative -ldl -lz + LIBS += -L. -lCore -lCommon -lNative -ldl PRE_TARGETDEPS += ./libCommon.a ./libCore.a ./libNative.a !mobile_platform { CONFIG += link_pkgconfig @@ -38,6 +38,8 @@ linux { FFMPEG_DIR=../ffmpeg/linux/x86_64/lib/ LIBS += $${FFMPEG_DIR}libavformat.a $${FFMPEG_DIR}libavcodec.a $${FFMPEG_DIR}libavutil.a $${FFMPEG_DIR}libswresample.a $${FFMPEG_DIR}libswscale.a } + # put this at the end avoids problems with some compilers + LIBS += -lz } # Main