Removed unnecessary calls to CLIPPING_UpdateGCRegion. Fixed PatBlt to

use DC_GetDCUpdate.
This commit is contained in:
Alexandre Julliard 2000-08-22 20:01:47 +00:00
parent 2e765e0071
commit 0baa4e0b3b
2 changed files with 1 additions and 9 deletions

View File

@ -26,7 +26,7 @@ BOOL16 WINAPI PatBlt16( HDC16 hdc, INT16 left, INT16 top,
BOOL WINAPI PatBlt( HDC hdc, INT left, INT top, BOOL WINAPI PatBlt( HDC hdc, INT left, INT top,
INT width, INT height, DWORD rop) INT width, INT height, DWORD rop)
{ {
DC * dc = DC_GetDCPtr( hdc ); DC * dc = DC_GetDCUpdate( hdc );
BOOL bRet = FALSE; BOOL bRet = FALSE;
if (!dc) return FALSE; if (!dc) return FALSE;

View File

@ -1471,8 +1471,6 @@ BOOL X11DRV_PatBlt( DC *dc, INT left, INT top,
params.heightSrc = 0; params.heightSrc = 0;
params.rop = rop; params.rop = rop;
if (dc->w.flags & DC_DIRTY) CLIPPING_UpdateGCRegion( dc );
X11DRV_DIB_UpdateDIBSection( dc, FALSE ); X11DRV_DIB_UpdateDIBSection( dc, FALSE );
EnterCriticalSection( &X11DRV_CritSection ); EnterCriticalSection( &X11DRV_CritSection );
result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, &params ); result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, &params );
@ -1507,9 +1505,6 @@ BOOL X11DRV_BitBlt( DC *dcDst, INT xDst, INT yDst,
X11DRV_DIB_UpdateDIBSection( dcDst, FALSE ); X11DRV_DIB_UpdateDIBSection( dcDst, FALSE );
X11DRV_DIB_UpdateDIBSection( dcSrc, 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 ); EnterCriticalSection( &X11DRV_CritSection );
result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, &params ); result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, &params );
LeaveCriticalSection( &X11DRV_CritSection ); LeaveCriticalSection( &X11DRV_CritSection );
@ -1544,9 +1539,6 @@ BOOL X11DRV_StretchBlt( DC *dcDst, INT xDst, INT yDst,
X11DRV_DIB_UpdateDIBSection( dcDst, FALSE ); X11DRV_DIB_UpdateDIBSection( dcDst, FALSE );
X11DRV_DIB_UpdateDIBSection( dcSrc, 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 ); EnterCriticalSection( &X11DRV_CritSection );
result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, &params ); result = (BOOL)CALL_LARGE_STACK( BITBLT_DoStretchBlt, &params );
LeaveCriticalSection( &X11DRV_CritSection ); LeaveCriticalSection( &X11DRV_CritSection );