summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-09-24 12:56:33 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-09-24 12:57:29 +0200
commit940b7ba13d26dcde4fbd4574d56167501e598327 (patch)
tree1d4a3144c53bffaa853582691746593a85738098 /src
parentbce85d951109aa36f6cf488ba63ae640f2ffc1dc (diff)
Faster drawing of layer-based windows if entirely redrawn
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index ade38b4a7..ad9d79fa4 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2256,7 +2256,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
window->clear_damage(FL_DAMAGE_ALL);
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
- else if (cgimg && gc) {
+ else if (cgimg && gc && ( Fl_X::i(window)->region || !(window->damage()&FL_DAMAGE_ALL)) ) {
CGContextDrawImage(gc, NSRectToCGRect([self frame]), cgimg);
}
CGImageRelease(cgimg);