[wx-dev] Fwd: CVS: [RD] wxWidgets/src/mac/carbon renderer.cpp,
1.34, 1.35
Vadim Zeitlin
vadim at wxwindows.org
Wed Nov 1 06:22:27 PST 2006
On Tue, 31 Oct 2006 20:33:04 -0800 Kevin Ollivier <kevino at theolliviers.com> wrote:
KO> Out of curiosity, are there any sort of rules about where the
KO> LogicalToDevice adjustments should be performed? Looking in src/mac/
KO> carbon/renderer.cpp, I see that other wxRendererNative functions do
KO> the LogicalToRelative conversions internally, and I'm a bit concerned
KO> that the discrepancy could cause confusion down the line. (In fact,
KO> in src/generic/treectlg.cpp, x and y are adjusted values, while width
KO> and height are not.)
The renderers are not supposed to perform the coordination translation
themselves, neither wxUniv nor wxMSW do it at all. They do use the current
coordinates system of the wxDC they're passed, of course.
It would certainly be a good idea to keep this true for all platforms.
Thanks,
VZ
More information about the wx-dev
mailing list