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:
parent
bd3f878021
commit
e0877b84a6
|
@ -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;
|
||||
|
|
|
@ -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.@)
|
||||
*/
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue