diff --git a/uppsrc/CtrlCore/CtrlDraw.cpp b/uppsrc/CtrlCore/CtrlDraw.cpp index f627e7242..fda1f6231 100644 --- a/uppsrc/CtrlCore/CtrlDraw.cpp +++ b/uppsrc/CtrlCore/CtrlDraw.cpp @@ -414,11 +414,11 @@ void Ctrl::UpdateArea0(SystemDraw& draw, const Rect& clip, int backpaint) LLOG("========== UPDATE AREA " << UPP::Name(this) << ", clip: " << clip << " =========="); ExcludeDHCtrls(draw, GetRect().GetSize(), clip); auto DoCtrlPaint = [&](SystemDraw& w, const Rect& clip) { - #ifdef PLATFORM_WIN32 + #if defined(PLATFORM_WIN32) && !defined(VIRTUALGUI) PaintWinBarBackground(w, clip); #endif CtrlPaint(w, clip); - #ifdef PLATFORM_WIN32 + #if defined(PLATFORM_WIN32) && !defined(VIRTUALGUI) PaintWinBar(w, clip); #endif }; @@ -598,4 +598,4 @@ void Ctrl::GlobalBackBuffer(bool b) globalbackbuffer = b; } -} \ No newline at end of file +}