diff --git a/gb.qt4/src/CDrawingArea.cpp b/gb.qt4/src/CDrawingArea.cpp index 2650820da..c277aef03 100644 --- a/gb.qt4/src/CDrawingArea.cpp +++ b/gb.qt4/src/CDrawingArea.cpp @@ -386,8 +386,13 @@ void MyDrawingArea::clearBackground() } else { - update(); - } +#ifndef QT5 + XClearArea(QX11Info::display(), winId(), 0, 0, 0, 0, True); + XFlush(QX11Info::display()); +#else + update(); +#endif + } } void MyDrawingArea::resizeEvent(QResizeEvent *e)