mirror of
https://github.com/reactos/reactos.git
synced 2024-08-03 18:10:54 +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;
|
sx_dec = 0;
|
||||||
|
|
||||||
for (DesX=DestRect->left; DesX<DestRect->right; DesX++)
|
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)
|
if (UsesSource)
|
||||||
{
|
{
|
||||||
|
@ -162,6 +168,7 @@ BOOLEAN DIB_XXBPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
sx_dec -= sx_max;
|
sx_dec -= sx_max;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sy += SrcZoomYHight;
|
sy += SrcZoomYHight;
|
||||||
sy_dec += SrcZoomYLow;
|
sy_dec += SrcZoomYLow;
|
||||||
|
|
Loading…
Reference in a new issue