Forgot to commit this code in r39227, needed for basic clipping.

svn path=/trunk/; revision=39323
This commit is contained in:
Gregor Schneider 2009-02-03 14:33:23 +00:00
parent df7415ebd9
commit e4ca01940c

View file

@ -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;