new printing code as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30832
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
pango_layout_get_pixel_size( m_layout, &w, &h );
if (width)
- *width = (wxCoord) w;
+ *width = (wxCoord)(w / m_scaleX);
if (height)
- *height = (wxCoord) h;
+ *height = (wxCoord)(h / m_scaleY);
if (descent)
{
PangoLayoutIter *iter = pango_layout_get_iter(m_layout);
pango_layout_get_pixel_size( m_layout, &w, &h );
if (width)
- *width = (wxCoord) w;
+ *width = (wxCoord)(w / m_scaleX);
if (height)
- *height = (wxCoord) h;
+ *height = (wxCoord)(h / m_scaleY);
if (descent)
{
PangoLayoutIter *iter = pango_layout_get_iter(m_layout);