getting rid of warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2002-08-24 16:20:21 +00:00
parent 023fff9ae0
commit 5b028d57d1
2 changed files with 10 additions and 8 deletions

View File

@ -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)

View File

@ -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)