aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2022-12-14 19:01:18 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2023-01-01 16:08:49 +0100
commitbcfcaeb87be783d8c329b0bc96323f1c9863982d (patch)
tree3812efd8b321a79cdbda2a89326ce7bcc6fc0b69 /src/qml/jsruntime/qv4script.cpp
parent6ac764a4d9e3bd723e955e8e9d5efd8ef6900214 (diff)
shapes: Privately expose the tringulator scale
For many typical uses in Qt Quick the hardcoded TRI_SCALE = 1 was just fine. However, this is not quite sufficient for Qt Location's purposes since the triangulator in QtGui may run out of precision when zooming in a map and having to deal with large coordinates. To overcome this one would pass in a transform with a < 1 scale to the triangulator and then apply the same scaling in reverse to the generated vertex positions (e.g. this is what the OpenGL paint engine does). But to allow doing this, there needs to be an internal way at least, so that one can send the desired scale down to the default Shape rendering backend. Pick-to: 6.5 Change-Id: I4e7f72b79d317ebc31e9d661f4a93723854e3504 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
0 files changed, 0 insertions, 0 deletions