Move drawseg clipping variables to DrawSegmentClipInfo
This commit is contained in:
parent
879fae7cd0
commit
72bba914ce
8 changed files with 83 additions and 80 deletions
|
|
@ -131,10 +131,10 @@ namespace swrenderer
|
|||
{
|
||||
ds = Segment(groupIndex);
|
||||
|
||||
if (ds->silhouette & SIL_BOTTOM)
|
||||
if (ds->drawsegclip.silhouette & SIL_BOTTOM)
|
||||
{
|
||||
short *clip1 = clipbottom + ds->x1;
|
||||
const short *clip2 = ds->sprbottomclip;
|
||||
const short *clip2 = ds->drawsegclip.sprbottomclip;
|
||||
int i = ds->x2 - ds->x1;
|
||||
do
|
||||
{
|
||||
|
|
@ -145,10 +145,10 @@ namespace swrenderer
|
|||
} while (--i);
|
||||
}
|
||||
|
||||
if (ds->silhouette & SIL_TOP)
|
||||
if (ds->drawsegclip.silhouette & SIL_TOP)
|
||||
{
|
||||
short *clip1 = cliptop + ds->x1;
|
||||
const short *clip2 = ds->sprtopclip;
|
||||
const short *clip2 = ds->drawsegclip.sprtopclip;
|
||||
int i = ds->x2 - ds->x1;
|
||||
do
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue