summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qoutlinemapper_p.h
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-05-19 07:27:19 (GMT)
committeraavit <qt-info@nokia.com>2011-05-19 08:08:25 (GMT)
commitf8e85838c5531b56c2175cbdb9c24db426f7fd89 (patch)
tree0439a568cf10c4b3c18ab9482501d5114a424590 /src/gui/painting/qoutlinemapper_p.h
parent44e1526ee2585c0402c284aa94eb2472fa4a4145 (diff)
downloadQt-f8e85838c5531b56c2175cbdb9c24db426f7fd89.zip
Qt-f8e85838c5531b56c2175cbdb9c24db426f7fd89.tar.gz
Qt-f8e85838c5531b56c2175cbdb9c24db426f7fd89.tar.bz2
Revert "Fix how subpixel positions are intepreted in an aliased grid."
This reverts commit 69fc9e594e6d5da87bff42707973683f84b67c93. Conflicts: src/gui/painting/qpaintengine_raster.cpp src/gui/painting/qrasterizer.cpp
Diffstat (limited to 'src/gui/painting/qoutlinemapper_p.h')
-rw-r--r--src/gui/painting/qoutlinemapper_p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/painting/qoutlinemapper_p.h b/src/gui/painting/qoutlinemapper_p.h
index 4dd28ac..0f2303c 100644
--- a/src/gui/painting/qoutlinemapper_p.h
+++ b/src/gui/painting/qoutlinemapper_p.h
@@ -95,7 +95,8 @@ public:
m_tags(0),
m_contours(0),
m_polygon_dev(0),
- m_in_clip_elements(false)
+ m_in_clip_elements(false),
+ m_round_coords(false)
{
}
@@ -201,6 +202,8 @@ public:
QT_FT_Outline *convertPath(const QPainterPath &path);
QT_FT_Outline *convertPath(const QVectorPath &path);
+ void setCoordinateRounding(bool coordinateRounding) { m_round_coords = coordinateRounding; }
+
inline QPainterPath::ElementType *elementTypes() const { return m_element_types.size() == 0 ? 0 : m_element_types.data(); }
public:
@@ -234,6 +237,9 @@ public:
bool m_valid;
bool m_in_clip_elements;
+
+private:
+ bool m_round_coords;
};
QT_END_NAMESPACE