diff options
author | Fabien Freling <fabien.freling@nokia.com> | 2010-07-22 14:15:55 (GMT) |
---|---|---|
committer | Fabien Freling <fabien.freling@nokia.com> | 2010-07-22 14:15:55 (GMT) |
commit | c8bb76ec0b19da9e24512852dc8b00461e1a1b7b (patch) | |
tree | f33da7a7097c8ab24903938f4862dcc3bac23ff7 /src/gui/kernel/qcocoaview_mac.mm | |
parent | df6549d1b95af017305744af04a7bb3b10025660 (diff) | |
download | Qt-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.mm | 4 |
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]; |