X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7010702f631a71afdb7beef50fcb4857db0cc5a2..1d6560d796aefb5dbdf217109767b1054c68c291:/src/msw/gdiimage.cpp diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index 3df7a17979..cba8189116 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 } @@ -665,7 +665,7 @@ HBITMAP wxLoadBMP(const wxString& filename) pBmpInfo->bmiHeader.biSizeImage = nBitsSize; //HBITMAP hBitmap=SetBitmap((LPBITMAPINFO)pBmpInfo, pBits); - DWORD dwBitmapInfoSize = sizeof(BITMAPINFO) + nColors*sizeof(RGBQUAD); + //DWORD dwBitmapInfoSize = sizeof(BITMAPINFO) + nColors*sizeof(RGBQUAD); // Create a DC which will be used to get DIB, then create DIBsection HDC hDC = ::GetDC(NULL);