[GDI32_APITEST]

- Comment out a broken test (works only on 32bpp)
- Fix MSVC warning

svn path=/trunk/; revision=56495
This commit is contained in:
Timo Kreuzer 2012-05-04 12:32:11 +00:00
parent 3d4754e67f
commit 7434309535
2 changed files with 6 additions and 4 deletions

View file

@ -12,7 +12,7 @@
void Test_SetDCPenColor()
{
HDC hScreenDC, hDC;
HBITMAP hbmp;
HBITMAP hbmp, hbmpOld;
// Test an incorrect DC
SetLastError(ERROR_SUCCESS);
@ -49,13 +49,15 @@ void Test_SetDCPenColor()
hbmp = CreateBitmap(10, 10, 1, 32, NULL);
ok(hbmp != 0, "CreateBitmap failed, skipping tests\n");
if (!hbmp) return;
SelectObject(hDC, hbmp);
hbmpOld = SelectObject(hDC, hbmp);
#if 0 // this only works on 32 bpp screen resolution
ok(hbmpOld != NULL, "\n");
SelectObject(hDC, GetStockObject(DC_PEN));
SetDCPenColor(hDC, 0x123456);
MoveToEx(hDC, 0, 0, NULL);
LineTo(hDC, 10, 0);
ok(GetPixel(hDC, 5, 0) == 0x123456, "\n");
#endif
// Delete the DC
DeleteDC(hDC);

View file

@ -71,7 +71,7 @@ void Test_SetPixel_PAL()
HDC hdc;
HPALETTE hpal, hpalOld;
PULONG pulBits;
ULONG i;
USHORT i;
/* Initialize the BITMAPINFO */
pbmi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);