diff --git a/ChangeLog b/ChangeLog index 51bee0d..5d7b7a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-12-11 Fred Kiefer + + * Source/winlib/WIN32GState.m: Remove a few compiler warnings. + 2010-12-11 Fred Kiefer * Source/winlib/WIN32GState.m (GSCreateBitmap, -DPSImage:::...:): diff --git a/Source/winlib/WIN32GState.m b/Source/winlib/WIN32GState.m index cb5f687..ba055c5 100644 --- a/Source/winlib/WIN32GState.m +++ b/Source/winlib/WIN32GState.m @@ -39,16 +39,20 @@ #endif #endif -#include -#include -#include -#include -#include +#import +#import +#import -#include "winlib/WIN32GState.h" -#include "winlib/WIN32Context.h" -#include "winlib/WIN32FontInfo.h" -#include "win32/WIN32Server.h" +#import +#import +#import +#import +#import + +#import "winlib/WIN32GState.h" +#import "winlib/WIN32Context.h" +#import "winlib/WIN32FontInfo.h" +#import "win32/WIN32Server.h" #include #include @@ -467,7 +471,7 @@ BOOL alpha_blend_source_over(HDC destDC, int y = aPoint.y; int w = aRect.size.width; int h = aRect.size.height; - BOOL success; + BOOL success = YES; sourceDC = [source getHDC]; if (!sourceDC) @@ -1576,7 +1580,7 @@ HBITMAP GSCreateBitmap(HDC hDC, int pixelsWide, int pixelsHigh, // Gets the "bits" from the bitmap and copies them into a buffer // which is pointed to by lpbi if (GetDIBits(hdcMemDC, hbitmap, 0, (UINT)bmpCopied.bmHeight, bits, - (BITMAPINFOHEADER *)lpbi, DIB_RGB_COLORS) == 0) + (LPBITMAPINFO)lpbi, DIB_RGB_COLORS) == 0) { NSLog(@"GetDIBits failed for window %d in GSReadRect. Error %d", (int)window, GetLastError());