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:
parent
89228b0697
commit
ed00dc77a9
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue