CtrlCore: Fix VirtualGui compilation on Windows. (#300)

This PR aims to fix virtualgui compilation error, stems from the new WinBar support.
This commit is contained in:
İsmail Yılmaz 2025-10-14 06:56:39 +00:00 committed by GitHub
parent 2cbb524014
commit 908ceb5193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}
}