Make coordinates transformations in wxDC really maximally precise.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jul 2011 23:36:19 +0000 (23:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jul 2011 23:36:19 +0000 (23:36 +0000)
commitebcdce46d2868eaf310467beafbcd26ebd0a5cc6
tree12082d66a7cf88f9c8b07f5e8c789ca89d0f14a1
parentfcd9ed6c3713f63bd070295039b985a5a6f6d76f
Make coordinates transformations in wxDC really maximally precise.

Use the maximal device space extent supported by Win32 GDI and only decrease
it if the scale is so small that keeping the device space extent maximal would
result in overflowing the int range for the logical space.

This makes coordinate translations exact even for huge coordinates, while they
could be significantly wrong before due to the integer rounding errors.

Closes #13284.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/dc.cpp