- if (width) *width = long( double(w) / (m_scaleX*m_mm_to_pix_x) );
- if (height) *height = long( double(h) / (m_scaleY*m_mm_to_pix_y) );
+ if (width) *width = int( double(w) / (m_scaleX*m_mm_to_pix_x) );
+ if (height) *height = int( double(h) / (m_scaleY*m_mm_to_pix_y) );
+}
+
+// Resolution in pixels per logical inch
+wxSize wxDC::GetPPI(void) const
+{
+ // TODO (should probably be pure virtual)
+ return wxSize(0, 0);