X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17a6a2e097cf7c2c952685f3529c527bfb71a6bc..cf2372509cef60accf833de95b1688e0c28b0567:/src/msw/gdiimage.cpp diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index 36c3623a9f..f6dc5a9096 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -378,9 +378,9 @@ bool wxBMPFileHandler::LoadFile(wxBitmap *bitmap, WXHBITMAP hBitmap = (WXHBITMAP)wxLoadBMP(name); if(hBitmap) { bitmap->SetHBITMAP(hBitmap); - return TRUE; + return true; } - return FALSE; + return false; #endif } @@ -396,7 +396,7 @@ bool wxBMPFileHandler::SaveFile(wxBitmap *bitmap, return dib.Save(name); #else - return FALSE; + return false; #endif } @@ -648,7 +648,7 @@ HBITMAP wxLoadBMP(const wxString& filename) pBmpInfo->bmiHeader.biClrUsed : 1 << pBmpInfo->bmiHeader.biBitCount; if (nColors < 1 || file.Read(pBmpInfo->bmiColors, nColors * sizeof(RGBQUAD)) - == (off_t)(nColors * sizeof(RGBQUAD))) { + == nColors * sizeof(RGBQUAD)) { // So how big the bitmap surface is. int nBitsSize = BmpFileHdr.bfSize - BmpFileHdr.bfOffBits;