[YAROTOWS] Reintegrate the branch. For a brighter future.
[reactos.git] / reactos / subsystems / win32 / win32k / eng / gradient.c
index c3ef653..75faeae 100644 (file)
@@ -548,14 +548,7 @@ IntEngGradientFill(
   psurf = CONTAINING_RECORD(psoDest, SURFACE, SurfObj);
   ASSERT(psurf);
 
-  SURFACE_LockBitmapBits(psurf);
-  MouseSafetyOnDrawStart(
-         psoDest,
-         pco->rclBounds.left,
-         pco->rclBounds.top,
-      pco->rclBounds.right,
-         pco->rclBounds.bottom);
-  if(psurf->flHooks & HOOK_GRADIENTFILL)
+  if(psurf->flags & HOOK_GRADIENTFILL)
   {
     Ret = GDIDEVFUNCS(psoDest).GradientFill(
       psoDest, pco, pxlo, pVertex, nVertex, pMesh, nMesh,
@@ -566,8 +559,6 @@ IntEngGradientFill(
     Ret = EngGradientFill(psoDest, pco, pxlo, pVertex, nVertex, pMesh, nMesh, prclExtents,
                           pptlDitherOrg, ulMode);
   }
-  MouseSafetyOnDrawEnd(psoDest);
-  SURFACE_UnlockBitmapBits(psurf);
 
   return Ret;
 }