From 908ceb5193a855ecbacef9502f506687dde09901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Y=C4=B1lmaz?= <32938453+ismail-yilmaz@users.noreply.github.com> Date: Tue, 14 Oct 2025 06:56:39 +0000 Subject: [PATCH] CtrlCore: Fix VirtualGui compilation on Windows. (#300) This PR aims to fix virtualgui compilation error, stems from the new WinBar support. --- uppsrc/CtrlCore/CtrlDraw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}