From a9541de9487943c572d7d0df1e09612684c9176c Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 10 Jan 2011 18:14:33 +0000 Subject: [PATCH] enable wxUSE_UXTHEME only on windows, this hopefully fixes the build on linux again git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1607 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/util.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gui/util.cpp b/src/gui/util.cpp index ae1fc997..13c33869 100644 --- a/src/gui/util.cpp +++ b/src/gui/util.cpp @@ -340,7 +340,7 @@ void draw_radiobox(Window* win, DC& dc, const wxRect& rect, bool checked, bool e } void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool selected, bool focused, bool hot) { - #if wxUSE_UXTHEME && defined(__WXMSW__) && 1 + #if wxUSE_UXTHEME && defined(__WXMSW__) #if !defined(NTDDI_LONGHORN) || NTDDI_VERSION < NTDDI_LONGHORN #define LISS_NORMAL LIS_NORMAL #define LISS_SELECTED LIS_SELECTED @@ -373,8 +373,10 @@ void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool sele } void enable_themed_selection_rectangle(Window* win) { - wxUxThemeEngine *themeEngine = wxUxThemeEngine::Get(); - if (themeEngine && themeEngine->IsAppThemed()) { - themeEngine->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL); - } + #if wxUSE_UXTHEME && defined(__WXMSW__) + wxUxThemeEngine *themeEngine = wxUxThemeEngine::Get(); + if (themeEngine && themeEngine->IsAppThemed()) { + themeEngine->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL); + } + #endif } \ No newline at end of file