X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37ba70a520519fd2fe4f11400f1383fa37ae7cd9..0bbe61b8c18a1795189f0cf73cc61c14a0fb846d:/src/common/imagbmp.cpp?ds=inline diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 76d4532725..66718fc518 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -38,12 +38,6 @@ // For memcpy #include -#ifdef __SALFORDC__ -#ifdef FAR -#undef FAR -#endif -#endif - //----------------------------------------------------------------------------- // wxBMPHandler //----------------------------------------------------------------------------- @@ -200,8 +194,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: