projects
/
profile
/
ivi
/
qtwayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a9ce9
)
Always do full updates when using GL.
author
Samuel Rødal
<samuel.rodal@nokia.com>
Tue, 15 Mar 2011 09:49:02 +0000
(10:49 +0100)
committer
Samuel Rødal
<samuel.rodal@nokia.com>
Tue, 15 Mar 2011 09:49:02 +0000
(10:49 +0100)
examples/qwidget-compositor/main.cpp
patch
|
blob
|
history
diff --git
a/examples/qwidget-compositor/main.cpp
b/examples/qwidget-compositor/main.cpp
index
02bccfc
..
781ee5d
100644
(file)
--- a/
examples/qwidget-compositor/main.cpp
+++ b/
examples/qwidget-compositor/main.cpp
@@
-103,7
+103,11
@@
protected:
}
void surfaceDamaged(WaylandSurface *surface, const QRect &rect) {
+#ifdef QT_COMPOSITOR_WAYLAND_GL
+ update();
+#else
update(rect.translated(surface->geometry().topLeft()));
+#endif
}
void paintEvent(QPaintEvent *) {