gdi32: Disable SetSolidBrush16 since it requires access to gdi32 internals.

This commit is contained in:
Alexandre Julliard 2009-11-17 22:29:37 +01:00
parent d9700b6a77
commit 06e09f67b4
3 changed files with 2 additions and 27 deletions

View File

@ -447,24 +447,3 @@ static INT BRUSH_GetObject( HGDIOBJ handle, INT count, LPVOID buffer )
GDI_ReleaseObj( handle );
return count;
}
/***********************************************************************
* BRUSH_SetSolid
*/
BOOL BRUSH_SetSolid( HGDIOBJ handle, COLORREF new_color )
{
BRUSHOBJ * brushPtr;
BOOL res = FALSE;
if (!(brushPtr = GDI_GetObjPtr( handle, OBJ_BRUSH )))
return FALSE;
if (brushPtr->logbrush.lbStyle == BS_SOLID)
{
brushPtr->logbrush.lbColor = new_color;
res = TRUE;
}
GDI_ReleaseObj( handle );
return res;
}

View File

@ -3521,9 +3521,8 @@ BOOL16 WINAPI SetLayout16( HDC16 hdc, DWORD layout )
*/
BOOL16 WINAPI SetSolidBrush16(HBRUSH16 hBrush, COLORREF newColor )
{
TRACE("(hBrush %04x, newColor %08x)\n", hBrush, newColor);
return BRUSH_SetSolid( HBRUSH_32(hBrush), newColor );
FIXME( "%04x %08x no longer supported\n", hBrush, newColor );
return FALSE;
}

View File

@ -359,9 +359,6 @@ extern HBITMAP BITMAP_CopyBitmap( HBITMAP hbitmap ) DECLSPEC_HIDDEN;
extern BOOL BITMAP_SetOwnerDC( HBITMAP hbitmap, DC *dc ) DECLSPEC_HIDDEN;
extern INT BITMAP_GetWidthBytes( INT bmWidth, INT bpp ) DECLSPEC_HIDDEN;
/* brush.c */
extern BOOL BRUSH_SetSolid( HGDIOBJ handle, COLORREF new_color ) DECLSPEC_HIDDEN;
/* clipping.c */
extern void CLIPPING_UpdateGCRegion( DC * dc ) DECLSPEC_HIDDEN;