diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /wxWidgets-Fix | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'wxWidgets-Fix')
-rw-r--r-- | wxWidgets-Fix/apply-patches.cmd | 5 | ||||
-rw-r--r-- | wxWidgets-Fix/settings.cpp.patch | 60 |
2 files changed, 0 insertions, 65 deletions
diff --git a/wxWidgets-Fix/apply-patches.cmd b/wxWidgets-Fix/apply-patches.cmd deleted file mode 100644 index e8f6891c..00000000 --- a/wxWidgets-Fix/apply-patches.cmd +++ /dev/null @@ -1,5 +0,0 @@ -@if [%1]==[] echo Please pass wxWidgets installation directory as %%1 parameter, e.g.: C:\Programme\C++\wxWidgets && pause && exit - -::Segoe UI font with Vista -patch "%1\src\msw\settings.cpp" settings.cpp.patch -pause
\ No newline at end of file diff --git a/wxWidgets-Fix/settings.cpp.patch b/wxWidgets-Fix/settings.cpp.patch deleted file mode 100644 index 3c48d052..00000000 --- a/wxWidgets-Fix/settings.cpp.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- settings.cpp.old 2011-03-22 10:36:54.000000000 +0100 -+++ settings.cpp 2012-01-23 00:26:06.916105800 +0100 -@@ -40,6 +40,8 @@ - #endif - - #include "wx/fontutil.h" -+//#include <vssym32.h> -+#include <Uxtheme.h> - - // ---------------------------------------------------------------------------- - // private classes -@@ -261,6 +263,48 @@ - return font; - } - -+#ifndef TMT_MSGBOXFONT -+#define TMT_MSGBOXFONT 805 //why is this constant missing from Uxtheme.h??? -+#endif -+ -+typedef HTHEME (WINAPI* OpenThemeDataFun )(HWND hwnd, LPCWSTR pszClassList); -+typedef HRESULT (WINAPI* CloseThemeDataFun )(HTHEME hTheme); -+typedef HRESULT (WINAPI* GetThemeSysFontFun)(HTHEME hTheme, int iFontID, LOGFONTW* plf); -+ -+struct InitFont //(try to) initialize default font, before wxWidgets gets chance to screw up -+{ -+ InitFont() -+ { -+ //Windows 2000 doesn't ship with this dll so we need to link it dynamically -+ if (HMODULE lib = ::LoadLibrary(L"UxTheme.dll")) -+ { -+ OpenThemeDataFun OpenThemeData = reinterpret_cast<OpenThemeDataFun >(::GetProcAddress(lib, "OpenThemeData")); -+ CloseThemeDataFun CloseThemeData = reinterpret_cast<CloseThemeDataFun >(::GetProcAddress(lib, "CloseThemeData")); -+ GetThemeSysFontFun GetThemeSysFont = reinterpret_cast<GetThemeSysFontFun>(::GetProcAddress(lib, "GetThemeSysFont")); -+ -+ HTHEME theme = (*OpenThemeData)(NULL, //__in HWND hwnd, -+ L"WINDOW"); //__in LPCWSTR pszClassList -+ -+ LOGFONT lfont = {}; -+ if ((*GetThemeSysFont)(theme, //__in HTHEME hTheme, -+ TMT_MSGBOXFONT, //__in int iFontID, -+ &lfont) == S_OK) // __out LOGFONTW *plf -+ { -+ wxNativeFontInfo native; -+ native.lf = lfont; -+ delete gs_fontDefault; -+ gs_fontDefault = wxFontBase::New(native); -+ } -+ -+ if (theme != NULL) -+ (*CloseThemeData)(theme); -+ -+ ::FreeLibrary(lib); -+ } -+ } -+} dummy; -+ -+ - wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) - { - #ifdef __WXWINCE__ |