Removed unnecessary calls to CLIPPING_UpdateGCRegion. Fixed PatBlt to
use DC_GetDCUpdate.
This commit is contained in:
parent
2e765e0071
commit
0baa4e0b3b
|
@ -26,7 +26,7 @@ BOOL16 WINAPI PatBlt16( HDC16 hdc, INT16 left, INT16 top,
|
|||
BOOL WINAPI PatBlt( HDC hdc, INT left, INT top,
|
||||
INT width, INT height, DWORD rop)
|
||||
{
|
||||
DC * dc = DC_GetDCPtr( hdc );
|
||||
DC * dc = DC_GetDCUpdate( hdc );
|
||||
BOOL bRet = FALSE;
|
||||
|
||||
if (!dc) return FALSE;
|
||||
|
|
|
@ -1471,8 +1471,6 @@ BOOL X11DRV_PatBlt( DC *dc, INT left, INT top,
|
|||
params.heightSrc = 0;
|
||||
params.rop = rop;
|
||||
|
||||
if (dc->w.flags & DC_DIRTY) CLIPPING_UpdateGCRegion( dc );
|
||||
|
||||
X11DRV_DIB_UpdateDIBSection( dc, FALSE );
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, ¶ms );
|
||||
|
@ -1507,9 +1505,6 @@ BOOL X11DRV_BitBlt( DC *dcDst, INT xDst, INT yDst,
|
|||
X11DRV_DIB_UpdateDIBSection( dcDst, FALSE );
|
||||
X11DRV_DIB_UpdateDIBSection( dcSrc, FALSE );
|
||||
|
||||
if (dcDst->w.flags & DC_DIRTY) CLIPPING_UpdateGCRegion( dcDst );
|
||||
if (dcSrc && (dcSrc->w.flags & DC_DIRTY)) CLIPPING_UpdateGCRegion( dcSrc );
|
||||
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, ¶ms );
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
|
@ -1544,9 +1539,6 @@ BOOL X11DRV_StretchBlt( DC *dcDst, INT xDst, INT yDst,
|
|||
X11DRV_DIB_UpdateDIBSection( dcDst, FALSE );
|
||||
X11DRV_DIB_UpdateDIBSection( dcSrc, FALSE );
|
||||
|
||||
if (dcDst->w.flags & DC_DIRTY) CLIPPING_UpdateGCRegion( dcDst );
|
||||
if (dcSrc && (dcSrc->w.flags & DC_DIRTY)) CLIPPING_UpdateGCRegion( dcSrc );
|
||||
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, ¶ms );
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
|
|
Loading…
Reference in New Issue