X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e306597309a120f2ae91385c731a5cb2722c52aa..7ef156f79756492ef0955869c017db1f34d3eac1:/src/motif/dc.cpp?ds=sidebyside diff --git a/src/motif/dc.cpp b/src/motif/dc.cpp index 319fe79b5f..3e822c4836 100644 --- a/src/motif/dc.cpp +++ b/src/motif/dc.cpp @@ -213,15 +213,22 @@ void wxDC::GetSize( int* width, int* height ) const *height = m_maxY-m_minY; }; -void wxDC::GetSizeMM( long* width, long* height ) const +void wxDC::GetSizeMM( int* width, int* height ) const { int w = 0; int h = 0; GetSize( &w, &h ); - *width = long( double(w) / (m_scaleX*m_mm_to_pix_x) ); - *height = long( double(h) / (m_scaleY*m_mm_to_pix_y) ); + *width = int( double(w) / (m_scaleX*m_mm_to_pix_x) ); + *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); +} + void wxDC::SetTextForeground( const wxColour &col ) { if (!Ok()) return;