X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/023fff9ae0d4b7ace23fc5c070576c240a9f6915..5b028d57d15c1fc54f3a68c9dca18b5c53a3f755:/src/mac/carbon/utils.cpp diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 9c4bc2c8ce..1d0252c810 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -466,10 +466,11 @@ void wxDisplaySize(int *width, int *height) void wxDisplaySizeMM(int *width, int *height) { - wxDisplaySize(width, height); - // on mac 72 is fixed (at least now ;-) - *width *= 25.4 / 72 ; - *height *= 25.4 / 72 ; + wxDisplaySize(width, height); + // on mac 72 is fixed (at least now ;-) + float cvPt2Mm = 25.4 / 72; + *width = int( *width * cvPt2Mm ); + *height = int( *height * cvPt2Mm ); } void wxClientDisplayRect(int *x, int *y, int *width, int *height)