[gegl-qt] Widgets: Support scaling
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-qt] Widgets: Support scaling
- Date: Sun, 31 Jul 2011 18:16:59 +0000 (UTC)
commit 41d9f882f53545e4a06617c21704231f18208087
Author: Jon Nordby <jononor gmail com>
Date: Sun Jul 31 20:03:50 2011 +0200
Widgets: Support scaling
gegl-qt/geglqtviewimplementation.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gegl-qt/geglqtviewimplementation.cpp b/gegl-qt/geglqtviewimplementation.cpp
index 859a9b1..f701047 100644
--- a/gegl-qt/geglqtviewimplementation.cpp
+++ b/gegl-qt/geglqtviewimplementation.cpp
@@ -245,6 +245,7 @@ GeglQtViewImplementation::paint(QPainter *painter, const QRectF & viewRect)
QImage image(buffer, roi.width, roi.height, roi.width*4,
QImage::Format_ARGB32);
+ painter->scale(options()->scale(), options()->scale());
painter->drawImage(QPointF(), image);
g_free(buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]