Author: gschneider
Date: Mon Nov 9 19:04:59 2009
New Revision: 44051
URL:
http://svn.reactos.org/svn/reactos?rev=44051&view=rev
Log:
[win32k] Pass the size of the appropriate pen style (copypasta)
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/win3…
==============================================================================
--- 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] Mon Nov
9 19:04:59 2009
@@ -116,7 +116,7 @@
pBrush->flAttrs |= GDIBRUSH_IS_BITMAP;
pBrush->hbmPattern = GreCreateBitmap(szPatSize, 0, BMF_1BPP, BMF_NOZEROINIT,
NULL);
pPattern = SURFACE_Lock(pBrush->hbmPattern);
- GreSetBitmapBits(pPattern, sizeof(PatternDashDotDot), (PVOID)PatternAlternate);
+ GreSetBitmapBits(pPattern, sizeof(PatternAlternate), (PVOID)PatternAlternate);
SURFACE_Unlock(pPattern);
break;
@@ -124,7 +124,7 @@
pBrush->flAttrs |= GDIBRUSH_IS_BITMAP;
pBrush->hbmPattern = GreCreateBitmap(szPatSize, 0, BMF_1BPP, BMF_NOZEROINIT,
NULL);
pPattern = SURFACE_Lock(pBrush->hbmPattern);
- GreSetBitmapBits(pPattern, sizeof(PatternDashDotDot), (PVOID)PatternDot);
+ GreSetBitmapBits(pPattern, sizeof(PatternDot), (PVOID)PatternDot);
SURFACE_Unlock(pPattern);
break;
@@ -132,7 +132,7 @@
pBrush->flAttrs |= GDIBRUSH_IS_BITMAP;
pBrush->hbmPattern = GreCreateBitmap(szPatSize, 0, BMF_1BPP, BMF_NOZEROINIT,
NULL);
pPattern = SURFACE_Lock(pBrush->hbmPattern);
- GreSetBitmapBits(pPattern, sizeof(PatternDashDotDot), (PVOID)PatternDash);
+ GreSetBitmapBits(pPattern, sizeof(PatternDash), (PVOID)PatternDash);
SURFACE_Unlock(pPattern);
break;
@@ -140,7 +140,7 @@
pBrush->flAttrs |= GDIBRUSH_IS_BITMAP;
pBrush->hbmPattern = GreCreateBitmap(szPatSize, 0, BMF_1BPP, BMF_NOZEROINIT,
NULL);
pPattern = SURFACE_Lock(pBrush->hbmPattern);
- GreSetBitmapBits(pPattern, sizeof(PatternDashDotDot), (PVOID)PatternDashDot);
+ GreSetBitmapBits(pPattern, sizeof(PatternDashDot), (PVOID)PatternDashDot);
SURFACE_Unlock(pPattern);
break;