Use wxGetDisplayInfo() only when using wxGTK under Unix
Fix wxGTK build under MSW. See #22633.
This commit is contained in:
parent
7667bf30eb
commit
7626f53788
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ static bool IsLive(wxSplitterWindow* wnd)
|
|||
return true; // Mac can't paint outside paint event - always need live mode
|
||||
#else
|
||||
// wxClientDC doesn't work with Wayland neither, so check if we're using it.
|
||||
#if defined(__WXGTK3__)
|
||||
#if defined(__WXGTK3__) && defined(__UNIX__)
|
||||
switch ( wxGetDisplayInfo().type )
|
||||
{
|
||||
case wxDisplayNone:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue