summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwidget/bubble.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/qopenglwidget/bubble.cpp')
-rw-r--r--examples/opengl/qopenglwidget/bubble.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/opengl/qopenglwidget/bubble.cpp b/examples/opengl/qopenglwidget/bubble.cpp
index bf04c64966..c78e26a1d4 100644
--- a/examples/opengl/qopenglwidget/bubble.cpp
+++ b/examples/opengl/qopenglwidget/bubble.cpp
@@ -56,15 +56,15 @@ void Bubble::updateCache()
{
if (cache)
delete cache;
- cache = new QImage(qRound(radius * 2 + 2), qRound(radius * 2 + 2), QImage::Format_ARGB32);
+ cache = new QImage(qRound(radius * 2 + 2), qRound(radius * 2 + 2), QImage::Format_ARGB32_Premultiplied);
cache->fill(0x00000000);
QPainter p(cache);
- p.setRenderHint(QPainter::HighQualityAntialiasing);
+ p.setRenderHint(QPainter::Antialiasing);
QPen pen(Qt::white);
pen.setWidth(2);
p.setPen(pen);
p.setBrush(brush);
- p.drawEllipse(0, 0, int(2*radius), int(2*radius));
+ p.drawEllipse(1, 1, int(2*radius), int(2*radius));
}
//! [0]