gdi32: Return failure when GetPixel is not supported.

This commit is contained in:
Alexandre Julliard 2011-11-04 11:00:57 +01:00
parent cc221b285b
commit 278899d1e8
2 changed files with 4 additions and 1 deletions

View File

@ -402,7 +402,7 @@ static UINT nulldrv_GetOutlineTextMetrics( PHYSDEV dev, UINT size, LPOUTLINETEXT
static COLORREF nulldrv_GetPixel( PHYSDEV dev, INT x, INT y )
{
return 0;
return CLR_INVALID;
}
static INT nulldrv_GetPixelFormat( PHYSDEV dev )

View File

@ -873,6 +873,9 @@ static void test_printer_dc(void)
ok( BitBlt( memdc, 10, 10, 20, 20, display_memdc, 0, 0, SRCCOPY ), "BitBlt failed\n" );
ok( BitBlt( display_memdc, 10, 10, 20, 20, memdc, 0, 0, SRCCOPY ), "BitBlt failed\n" );
ret = GetPixel( hdc, 0, 0 );
ok( ret == CLR_INVALID, "wrong pixel value %x\n", ret );
DeleteDC( memdc );
DeleteDC( display_memdc );
DeleteDC( hdc );