mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
Forgot to commit this code in r39227, needed for basic clipping.
svn path=/trunk/; revision=39323
This commit is contained in:
parent
df7415ebd9
commit
e4ca01940c
|
@ -138,6 +138,12 @@ BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
sx_dec = 0;
|
||||
|
||||
for (DesX=DestRect->left; DesX<DestRect->right; DesX++)
|
||||
{
|
||||
/* Check if inside clip region */
|
||||
if (DesX >= OutputRect.left &&
|
||||
DesX < OutputRect.right &&
|
||||
DesY >= OutputRect.top &&
|
||||
DesY < OutputRect.bottom)
|
||||
{
|
||||
if (UsesSource)
|
||||
{
|
||||
|
@ -162,6 +168,7 @@ BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
sx_dec -= sx_max;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sy += SrcZoomYHight;
|
||||
sy_dec += SrcZoomYLow;
|
||||
|
|
Loading…
Reference in a new issue