aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-19 22:34:32 +0800
committercrupest <crupest@outlook.com>2021-10-19 22:34:32 +0800
commit398aadcddb8b6ed20b17f6c56cd7b49947b72136 (patch)
treef16515c8eef2d389a4314a2c9a60e4d11ecd4fa9 /src
parentfd2e84640b2be52f97f48d818d26fc1289a50c7a (diff)
downloadcru-398aadcddb8b6ed20b17f6c56cd7b49947b72136.tar.gz
cru-398aadcddb8b6ed20b17f6c56cd7b49947b72136.tar.bz2
cru-398aadcddb8b6ed20b17f6c56cd7b49947b72136.zip
...
Diffstat (limited to 'src')
-rw-r--r--src/osx/graphics/quartz/Painter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/osx/graphics/quartz/Painter.cpp b/src/osx/graphics/quartz/Painter.cpp
index c22f80fc..0dc9e786 100644
--- a/src/osx/graphics/quartz/Painter.cpp
+++ b/src/osx/graphics/quartz/Painter.cpp
@@ -138,12 +138,11 @@ void QuartzCGContextPainter::EndDraw() { DoEndDraw(); }
void QuartzCGContextPainter::DoEndDraw() {
if (cg_context_) {
- on_end_draw_(this);
-
CGContextFlush(cg_context_);
CGContextSynchronize(cg_context_);
-
log::TagDebug(log_tag, u"End draw and flush.");
+
+ on_end_draw_(this);
}
}