* Replace NtGdiCreatePatternBrush and NtGdiCreateHatchBrush with NtGdiCreatePatternBrushInteral and NtGdiCreateHatchBrushInteral

* Implement CreateHatchBrush, CreatePatternBrush

svn path=/trunk/; revision=20726
This commit is contained in:
Brandon Turner
2006-01-08 20:08:38 +00:00
parent b191c63dd2
commit de0a2f083b
5 changed files with 44 additions and 22 deletions
-11
View File
@@ -281,12 +281,6 @@ NtGdiCreateEnhMetaFile (
LPCWSTR Description
);
/* Use NtGdiCreateHatchBrushInternal with FALSE at the end. */
HBRUSH STDCALL
NtGdiCreateHatchBrush(
INT Style,
COLORREF Color);
/* Metafiles are user mode */
HDC
STDCALL
@@ -301,11 +295,6 @@ NtGdiCreatePalette (
CONST PLOGPALETTE lgpl
);
/* Use NtGdiCreatePatternBrushInternal with false, false at the end. */
HBRUSH STDCALL
NtGdiCreatePatternBrush(
HBITMAP hBitmap);
/* Use NtGdiCreatePen with -> as parameters. */
HPEN STDCALL
NtGdiCreatePenIndirect(
+2 -2
View File
@@ -72,13 +72,13 @@ CreateFontIndirectExW@4
CreateFontIndirectW@4
CreateFontW@56
CreateHalftonePalette@4=NtGdiCreateHalftonePalette@4
CreateHatchBrush@8=NtGdiCreateHatchBrush@8
CreateHatchBrush@8
CreateICA@16
CreateICW@16
CreateMetaFileA@4
CreateMetaFileW@4
CreatePalette@4=NtGdiCreatePalette@4
CreatePatternBrush@4=NtGdiCreatePatternBrush@4
CreatePatternBrush@4
CreatePen@12=NtGdiCreatePen@12
CreatePenIndirect@4=NtGdiCreatePenIndirect@4
CreatePolyPolygonRgn@16=NtGdiCreatePolyPolygonRgn@16
+32 -2
View File
@@ -77,6 +77,27 @@ CreateDIBPatternBrushPt(
return hBrush;
}
/*
* @implemented
*/
HBRUSH
STDCALL
CreateHatchBrush(INT fnStyle,
COLORREF clrref)
{
return NtGdiCreateHatchBrushInternal(fnStyle, clrref, FALSE);
}
/*
* @implemented
*/
HBRUSH
STDCALL
CreatePatternBrush(HBITMAP hbmp)
{
return NtGdiCreatePatternBrushInternal(hbmp, FALSE, FALSE);
}
/*
* @implemented
*/
@@ -111,8 +132,15 @@ CreateBrushIndirect(
break;
case BS_PATTERN:
hBrush = NtGdiCreatePatternBrushInternal((HBITMAP)LogBrush->lbHatch,
FALSE,
FALSE);
break;
case BS_PATTERN8X8:
hBrush = NtGdiCreatePatternBrush((HBITMAP)LogBrush->lbHatch);
hBrush = NtGdiCreatePatternBrushInternal((HBITMAP)LogBrush->lbHatch,
FALSE,
TRUE);
break;
case BS_SOLID:
@@ -120,7 +148,9 @@ CreateBrushIndirect(
break;
case BS_HATCHED:
hBrush = NtGdiCreateHatchBrush(LogBrush->lbHatch, LogBrush->lbColor);
hBrush = NtGdiCreateHatchBrushInternal(LogBrush->lbHatch,
LogBrush->lbColor,
FALSE);
break;
case BS_NULL:
+8 -5
View File
@@ -608,16 +608,19 @@ NtGdiCreateDIBBrush(
}
HBRUSH STDCALL
NtGdiCreateHatchBrush(
INT Style,
COLORREF Color)
NtGdiCreateHatchBrushInternal(
ULONG Style,
COLORREF Color,
BOOL bPen)
{
return IntGdiCreateHatchBrush(Style, Color);
}
HBRUSH STDCALL
NtGdiCreatePatternBrush(
HBITMAP hBitmap)
NtGdiCreatePatternBrushInternal(
HBITMAP hBitmap,
BOOL bPen,
BOOL b8x8)
{
return IntGdiCreatePatternBrush(hBitmap);
}
+2 -2
View File
@@ -35,11 +35,11 @@ NtGdiCreateEnhMetaFile 4
NtGdiCreateFont 14
NtGdiCreateFontIndirect 1
NtGdiCreateHalftonePalette 1
NtGdiCreateHatchBrush 2
NtGdiCreateHatchBrushInternal 3
NtGdiCreateIC 4
NtGdiCreateMetaFile 1
NtGdiCreatePalette 1
NtGdiCreatePatternBrush 1
NtGdiCreatePatternBrushInternal 3
NtGdiCreatePen 3
NtGdiCreatePenIndirect 1
NtGdiCreatePolygonRgn 3