Author: khornicek
Date: Sat Nov 7 19:56:04 2009
New Revision: 44011
URL: http://svn.reactos.org/svn/reactos?rev=44011&view=rev
Log:
- fill the whole pattern
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/gre/brushobj.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/gre/brushobj.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32/win32k/gre/brushobj.c?rev=44011&r1=44010&r2=44011&view=diff
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/gre/brushobj.c
[iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/gre/brushobj.c
[iso-8859-1] Sat Nov 7 19:56:04 2009
@@ -256,7 +256,7 @@
pBrush->hbmPattern = GreCreateBitmap(szPatSize, 0, BMF_1BPP,
BMF_NOZEROINIT, NULL);
GDIOBJ_SetOwnership(pBrush->hbmPattern, NULL);
pPattern = SURFACE_Lock(pBrush->hbmPattern);
- GreSetBitmapBits(pPattern, 8, (PVOID)HatchBrushes[iHatchStyle]);
+ GreSetBitmapBits(pPattern, 8 * sizeof(USHORT),
(PVOID)HatchBrushes[iHatchStyle]);
SURFACE_Unlock(pPattern);
/* Set color to the reserved value */