]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagbmp.cpp
mac cleanup, pure cgcolor
[wxWidgets.git] / src / common / imagbmp.cpp
index 76d453272589a2cd4dc18fb9ff0b000ac18a0fe0..ff95ab1374f59983ec82e7f99fd179eb37d6c5bf 100644 (file)
@@ -200,8 +200,8 @@ bool wxBMPHandler::SaveDib(wxImage *image,
 
         case wxIMAGE_RESOLUTION_INCHES:
             // convert resolution in inches to resolution in centimeters
-            hres *= 100*mm2inches;
-            vres *= 100*mm2inches;
+            hres = (wxUint32)(100*mm2inches*hres);
+            vres = (wxUint32)(100*mm2inches*vres);
             // fall through to convert it to resolution in meters
 
         case wxIMAGE_RESOLUTION_CM: