use GetWindow()->Refresh() on non-GTK too #260

Default to GetWindow()->Refresh() to draw the game area on non-GTK
platforms as well, and only use the DrawArea(dc) method in GTK2 and
lower.
This commit is contained in:
Rafael Kitover 2018-06-18 10:20:29 -07:00
parent 89228b0697
commit ed00dc77a9
1 changed files with 1 additions and 1 deletions

View File

@ -1819,7 +1819,7 @@ void DrawingPanelBase::DrawArea(uint8_t** data)
// next, draw the frame (queue a PaintEv) Refresh must be used under
// Wayland or nothing is drawn, however it causes high CPU usage with GTK2,
// so use the old method in that case
#ifdef __WXGTK3__
#if !defined(__WXGTK__) || defined(__WXGTK3__)
GetWindow()->Refresh();
#else
{