- const wxCoord x = dc.XLOG2DEV(rect.x /*- 1*/);
- const wxCoord y = dc.YLOG2DEV(rect.y /*- 1*/);
- const wxCoord w = dc.XLOG2DEVREL(rect.width);
- const wxCoord h = dc.YLOG2DEVREL(rect.height);
+ const wxCoord x = dc.LogicalToDeviceX(rect.x /*- 1*/);
+ const wxCoord y = dc.LogicalToDeviceY(rect.y /*- 1*/);
+ const wxCoord w = dc.LogicalToDeviceXRel(rect.width);
+ const wxCoord h = dc.LogicalToDeviceYRel(rect.height);