Commit 0e8612ff authored by twanvl's avatar twanvl

enable wxUSE_UXTHEME only on windows, this hopefully fixes the build on linux again

parent 65c08138
...@@ -340,7 +340,7 @@ void draw_radiobox(Window* win, DC& dc, const wxRect& rect, bool checked, bool e ...@@ -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) { 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 #if !defined(NTDDI_LONGHORN) || NTDDI_VERSION < NTDDI_LONGHORN
#define LISS_NORMAL LIS_NORMAL #define LISS_NORMAL LIS_NORMAL
#define LISS_SELECTED LIS_SELECTED #define LISS_SELECTED LIS_SELECTED
...@@ -373,8 +373,10 @@ void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool sele ...@@ -373,8 +373,10 @@ void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool sele
} }
void enable_themed_selection_rectangle(Window* win) { void enable_themed_selection_rectangle(Window* win) {
wxUxThemeEngine *themeEngine = wxUxThemeEngine::Get(); #if wxUSE_UXTHEME && defined(__WXMSW__)
if (themeEngine && themeEngine->IsAppThemed()) { wxUxThemeEngine *themeEngine = wxUxThemeEngine::Get();
themeEngine->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL); if (themeEngine && themeEngine->IsAppThemed()) {
} themeEngine->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL);
}
#endif
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment