mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
forget remove some test code.
svn path=/trunk/; revision=20549
This commit is contained in:
parent
3c8dbc6c23
commit
8b60a45ea6
|
@ -603,44 +603,6 @@ BOOLEAN ScaleRectAvg16(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check clib region */
|
|
||||||
BOOLEAN CheckClipRegion(CLIPOBJ *ClipRegion, RECTL* DestRect, int DesX, int DesY)
|
|
||||||
{
|
|
||||||
BOOLEAN status = FALSE;
|
|
||||||
PSPAN ClipSpans;
|
|
||||||
UINT ClipSpansCount;
|
|
||||||
UINT SpanIndex = 0;
|
|
||||||
|
|
||||||
if (! ClipobjToSpans(&ClipSpans, &ClipSpansCount, ClipRegion, DestRect))
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (0 == ClipSpansCount)
|
|
||||||
{
|
|
||||||
/* No clip spans == empty clipping region, everything clipped away */
|
|
||||||
ASSERT(NULL == ClipSpans);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (SpanIndex=0; SpanIndex<ClipSpansCount;SpanIndex++)
|
|
||||||
{
|
|
||||||
if (ClipSpans[SpanIndex].Y < DesY)
|
|
||||||
status = FALSE;
|
|
||||||
|
|
||||||
if (ClipSpans[SpanIndex].Y+ClipSpans[SpanIndex].Height > DesY)
|
|
||||||
status = FALSE;
|
|
||||||
|
|
||||||
if (ClipSpans[SpanIndex].X > DesX)
|
|
||||||
status = FALSE;
|
|
||||||
|
|
||||||
if (ClipSpans[SpanIndex].X+ClipSpans[SpanIndex].Width > DesX)
|
|
||||||
status = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//NOTE: If you change something here, please do the same in other dibXXbpp.c files!
|
//NOTE: If you change something here, please do the same in other dibXXbpp.c files!
|
||||||
BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
||||||
|
|
Loading…
Reference in a new issue