X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57591e0edb8cbaa2b12e4a0da68fe445fa636747..d6c9c1b71e069396bbe3850862de9aa10e6812e0:/src/motif/utils.cpp diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index 0dab1add9b..bbd87c8772 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -648,6 +648,16 @@ void wxDisplaySize(int *width, int *height) *height = DisplayHeight (dpy, DefaultScreen (dpy)); } +void wxDisplaySizeMM(int *width, int *height) +{ + Display *dpy = (Display*) wxGetDisplay(); + + if ( width ) + *width = DisplayWidthMM(dpy, DefaultScreen (dpy)); + if ( height ) + *height = DisplayHeightMM(dpy, DefaultScreen (dpy)); +} + // Configurable display in Motif static WXDisplay *gs_currentDisplay = NULL; static wxString gs_displayName;