diff options
author | Andy Nichols <andy.nichols@digia.com> | 2014-09-08 15:43:28 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@digia.com> | 2014-09-09 14:35:18 +0300 |
commit | 11640a314bfe42ef767f668d5bae687f7419942e (patch) | |
tree | 4c88e6229cd2caa93b6d70010951f00d4b788cbc /src/plugins/scenegraph/softwarecontext/rectanglenode.h | |
parent | 363830db7b14e53ce3c976c142da8edf1b648c69 (diff) |
Improve rendering quality of Rectangles
The existing implementation has both inaccurate drawing of
borders as well as many alignment issues. Much of these
alignment issues are due to our use of floating point sizes
and the integer based nature of blitter hardware. So now
for the Rectangle node we force alignment via the use of
whole numbers. This should be a better compromise of
speed vs accuracy than previously.
Change-Id: I9d8e9d1b3347a99bf0c2ae65ec66c935d8017817
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/plugins/scenegraph/softwarecontext/rectanglenode.h')
-rw-r--r-- | src/plugins/scenegraph/softwarecontext/rectanglenode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/rectanglenode.h b/src/plugins/scenegraph/softwarecontext/rectanglenode.h index 74c0971c82..f4c7cb3dcf 100644 --- a/src/plugins/scenegraph/softwarecontext/rectanglenode.h +++ b/src/plugins/scenegraph/softwarecontext/rectanglenode.h @@ -45,7 +45,7 @@ public: void paint(QPainter *); private: - QRectF m_rect; + QRect m_rect; QColor m_color; QColor m_penColor; double m_penWidth; |