diff options
author | crupest <crupest@outlook.com> | 2021-10-19 22:34:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-19 22:34:32 +0800 |
commit | 398aadcddb8b6ed20b17f6c56cd7b49947b72136 (patch) | |
tree | f16515c8eef2d389a4314a2c9a60e4d11ecd4fa9 /src/osx/graphics | |
parent | fd2e84640b2be52f97f48d818d26fc1289a50c7a (diff) | |
download | cru-398aadcddb8b6ed20b17f6c56cd7b49947b72136.tar.gz cru-398aadcddb8b6ed20b17f6c56cd7b49947b72136.tar.bz2 cru-398aadcddb8b6ed20b17f6c56cd7b49947b72136.zip |
...
Diffstat (limited to 'src/osx/graphics')
-rw-r--r-- | src/osx/graphics/quartz/Painter.cpp | 5 |
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); } } |