X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fsubsystems%2Fwin32%2Fwin32k%2Feng%2Fgradient.c;h=75faeae5c33dacd65b50b79e1de1a8bdb18a1bfa;hp=c3ef6535c04e3cfade77057e5d93cefd1ff1e6dc;hb=684c3d3791b92777e7de259fbc6691161f6808c7;hpb=f5258132f4eef483cce5491037d4383f958ce1a2 diff --git a/reactos/subsystems/win32/win32k/eng/gradient.c b/reactos/subsystems/win32/win32k/eng/gradient.c index c3ef6535c04..75faeae5c33 100644 --- a/reactos/subsystems/win32/win32k/eng/gradient.c +++ b/reactos/subsystems/win32/win32k/eng/gradient.c @@ -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; }