Exclusively lock surface bits before reading or writing them
[reactos.git] / reactos / subsys / win32k / objects / line.c
index 7ad513a..fed0c9d 100644 (file)
@@ -16,7 +16,6 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id$ */
 #include <w32k.h>
 
 // Some code from the WINE project source (www.winehq.com)
@@ -104,7 +103,7 @@ IntGdiLineTo(DC  *dc,
       if (!(PenBrushObj->flAttrs & GDIBRUSH_IS_NULL))
       {
         IntGdiInitBrushInstance(&PenBrushInst, PenBrushObj, dc->XlatePen);
-        Ret = IntEngLineTo(BitmapObj,
+        Ret = IntEngLineTo(&BitmapObj->SurfObj,
                            dc->CombinedClip,
                            &PenBrushInst.BrushObject,
                            Points[0].x, Points[0].y,
@@ -226,9 +225,9 @@ IntGdiPolyline(DC      *dc,
          }
 
          IntGdiInitBrushInstance(&PenBrushInst, PenBrushObj, dc->XlatePen);
-         Ret = IntEngPolyline(BitmapObj, dc->CombinedClip,
-                          &PenBrushInst.BrushObject, Points, Count,
-                          ROP2_TO_MIX(dc->w.ROPmode));
+         Ret = IntEngPolyline(&BitmapObj->SurfObj, dc->CombinedClip,
+                              &PenBrushInst.BrushObject, Points, Count,
+                              ROP2_TO_MIX(dc->w.ROPmode));
 
          BITMAPOBJ_UnlockBitmap(BitmapObj);
          EngFreeMem(Points);