Snapshot before repaint phase 2

This commit is contained in:
Codex
2026-04-07 21:37:49 +08:00
parent b07a4ec370
commit 77a8fe568a
10 changed files with 395 additions and 131 deletions
+8
View File
@@ -1,5 +1,6 @@
#include "Canvas.h"
#include "SxLog.h"
#include "Window.h"
static bool SxIsNoisyMsg(UINT m)
{
@@ -432,6 +433,13 @@ void Canvas::onWindowResize()
void Canvas::requestRepaint(Control* parent)
{
if (shouldDeferManagedRepaint())
{
if (auto* host = getHostWindow())
host->requestManagedRepaint();
return;
}
if (this == parent)
{
if (!show)