Use wxGetDisplayInfo() only when using wxGTK under Unix

Fix wxGTK build under MSW.

See #22633.
This commit is contained in:
Tim Stahlhut 2022-07-16 16:52:49 -04:00 committed by Vadim Zeitlin
parent 7667bf30eb
commit 7626f53788

View file

@ -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: