gdi32: Use NtGdiCreateHatchBrush for CreateHatchBrush.

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:50 +01:00 committed by Alexandre Julliard
parent bd3f878021
commit e0877b84a6
3 changed files with 12 additions and 3 deletions

View file

@ -190,15 +190,15 @@ HBRUSH create_brush( const LOGBRUSH *brush )
/***********************************************************************
* CreateHatchBrush (GDI32.@)
* NtGdiCreateHatchBrush (win32u.@)
*
* Create a logical brush with a hatched pattern.
*/
HBRUSH WINAPI CreateHatchBrush( INT style, COLORREF color )
HBRUSH WINAPI NtGdiCreateHatchBrush( INT style, COLORREF color, BOOL pen )
{
LOGBRUSH logbrush;
TRACE("%d %06x\n", style, color );
TRACE( "%d %06x\n", style, color );
logbrush.lbStyle = BS_HATCHED;
logbrush.lbColor = color;

View file

@ -432,6 +432,14 @@ HBRUSH WINAPI CreateSolidBrush( COLORREF color )
return NtGdiCreateSolidBrush( color, NULL );
}
/***********************************************************************
* CreateHatchBrush (GDI32.@)
*/
HBRUSH WINAPI CreateHatchBrush( INT style, COLORREF color )
{
return NtGdiCreateHatchBrush( style, color, FALSE );
}
/***********************************************************************
* CreateBitmapIndirect (GDI32.@)
*/

View file

@ -197,6 +197,7 @@ HFONT WINAPI NtGdiHfontCreate( const ENUMLOGFONTEXDVW *enumex, ULONG unk2, UL
HDC WINAPI NtGdiCreateCompatibleDC( HDC hdc );
HBRUSH WINAPI NtGdiCreateDIBBrush( const void* data, UINT coloruse );
HRGN WINAPI NtGdiCreateEllipticRgn( INT left, INT top, INT right, INT bottom );
HBRUSH WINAPI NtGdiCreateHatchBrush( INT style, COLORREF color, BOOL pen );
HBRUSH WINAPI NtGdiCreatePatternBrushInternal( HBITMAP hbitmap, BOOL pen );
HPEN WINAPI NtGdiCreatePen( INT style, INT width, COLORREF color, HBRUSH brush );
HRGN WINAPI NtGdiCreateRectRgn( INT left, INT top, INT right, INT bottom );