[ros-diffs] [gschneider] 37269: - Create the XLateObj between background and brush color - Allows hatched brush colors to show - Edit a FIXME: a bitmap is not a brush information

gschneider at svn.reactos.org gschneider at svn.reactos.org
Sun Nov 9 23:02:48 CET 2008


Author: gschneider
Date: Sun Nov  9 16:02:46 2008
New Revision: 37269

URL: http://svn.reactos.org/svn/reactos?rev=37269&view=rev
Log:
- Create the XLateObj between background and brush color
- Allows hatched brush colors to show
- Edit a FIXME: a bitmap is not a brush information

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/brush.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/brush.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/brush.c?rev=37269&r1=37268&r2=37269&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/brush.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/brush.c [iso-8859-1] Sun Nov  9 16:02:46 2008
@@ -62,12 +62,12 @@
    if (Count == 0) return 0;
 
    /* Set colour */
-    Buffer->lbColor =  BrushObject->BrushAttr.lbColor;
+    Buffer->lbColor = BrushObject->BrushAttr.lbColor;
 
     /* set Hatch */
     if ((BrushObject->flAttrs & GDIBRUSH_IS_HATCH)!=0)
     {
-        /* FIXME : is this right value */
+        /* FIXME : this is not the right value */
         Buffer->lbHatch = (LONG)BrushObject->hbmPattern;
     }
     else
@@ -153,7 +153,7 @@
          if (!Dc_Attr) Dc_Attr = &Dc->Dc_Attr;
 
          if (Dc->w.bitsPerPixel != 1)
-            Result = IntEngCreateSrcMonoXlate(hPalette, Dc_Attr->crForegroundClr, Dc_Attr->crBackgroundClr);
+            Result = IntEngCreateSrcMonoXlate(hPalette, BrushObj->BrushAttr.lbColor, Dc_Attr->crBackgroundClr);
       }
       else if (BrushObj->flAttrs & GDIBRUSH_IS_DIB)
       {



More information about the Ros-diffs mailing list