gdi32: Use NtGdiCreateSolidBrush for CreateSolidBrush.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-08-25 13:39:49 +01:00 committed by Alexandre Julliard
parent 2c467a2d1e
commit bd3f878021
3 changed files with 11 additions and 3 deletions

View file

@ -268,11 +268,11 @@ HBRUSH WINAPI CreateDIBPatternBrushPt( const void* data, UINT coloruse )
/*********************************************************************** /***********************************************************************
* CreateSolidBrush (GDI32.@) * NtGdiCreateSolidBrush (win32u.@)
* *
* Create a logical brush consisting of a single colour. * Create a logical brush consisting of a single colour.
*/ */
HBRUSH WINAPI CreateSolidBrush( COLORREF color ) HBRUSH WINAPI NtGdiCreateSolidBrush( COLORREF color, HBRUSH brush )
{ {
LOGBRUSH logbrush; LOGBRUSH logbrush;

View file

@ -424,6 +424,14 @@ HBRUSH WINAPI CreateBrushIndirect( const LOGBRUSH *brush )
} }
} }
/***********************************************************************
* CreateSolidBrush (GDI32.@)
*/
HBRUSH WINAPI CreateSolidBrush( COLORREF color )
{
return NtGdiCreateSolidBrush( color, NULL );
}
/*********************************************************************** /***********************************************************************
* CreateBitmapIndirect (GDI32.@) * CreateBitmapIndirect (GDI32.@)
*/ */

View file

@ -202,7 +202,7 @@ HPEN WINAPI NtGdiCreatePen( INT style, INT width, COLORREF color, HBRUSH bru
HRGN WINAPI NtGdiCreateRectRgn( INT left, INT top, INT right, INT bottom ); HRGN WINAPI NtGdiCreateRectRgn( INT left, INT top, INT right, INT bottom );
HRGN WINAPI NtGdiCreateRoundRectRgn( INT left, INT top, INT right, INT bottom, HRGN WINAPI NtGdiCreateRoundRectRgn( INT left, INT top, INT right, INT bottom,
INT ellipse_width, INT ellipse_height ); INT ellipse_width, INT ellipse_height );
HBRUSH WINAPI NtGdiCreateSolidBrush( COLORREF color ); HBRUSH WINAPI NtGdiCreateSolidBrush( COLORREF color, HBRUSH brush );
BOOL WINAPI NtGdiDeleteClientObj( HGDIOBJ obj ); BOOL WINAPI NtGdiDeleteClientObj( HGDIOBJ obj );
BOOL WINAPI NtGdiDeleteObjectApp( HGDIOBJ obj ); BOOL WINAPI NtGdiDeleteObjectApp( HGDIOBJ obj );
LONG WINAPI NtGdiDoPalette( HGDIOBJ handle, WORD start, WORD count, void *entries, LONG WINAPI NtGdiDoPalette( HGDIOBJ handle, WORD start, WORD count, void *entries,