summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoaview_mac.mm
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2010-07-22 14:15:55 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2010-07-22 14:15:55 (GMT)
commitc8bb76ec0b19da9e24512852dc8b00461e1a1b7b (patch)
treef33da7a7097c8ab24903938f4862dcc3bac23ff7 /src/gui/kernel/qcocoaview_mac.mm
parentdf6549d1b95af017305744af04a7bb3b10025660 (diff)
downloadQt-c8bb76ec0b19da9e24512852dc8b00461e1a1b7b.zip
Qt-c8bb76ec0b19da9e24512852dc8b00461e1a1b7b.tar.gz
Qt-c8bb76ec0b19da9e24512852dc8b00461e1a1b7b.tar.bz2
Fix the CGContext on Mac OS X. Sometimes we got
a bad context, resulting in wrong paintings. It also unify the raster engine behavior among platforms. Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/kernel/qcocoaview_mac.mm')
-rw-r--r--src/gui/kernel/qcocoaview_mac.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm
index 3665557..c9fa79b 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -498,9 +498,9 @@ static int qCocoaViewCount = 0;
return;
if (QApplicationPrivate::graphicsSystem() != 0) {
- if (QWidgetBackingStore *bs = qwidgetprivate->maybeBackingStore())
- bs->markDirty(qwidget->rect(), qwidget);
+ qwidget->update(qwidget->rect());
qwidgetprivate->syncBackingStore(qwidget->rect());
+ return;
}
CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];