r_drawflat works at 16bpp.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1866 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
477a052107
commit
9bed1da484
1 changed files with 15 additions and 0 deletions
|
@ -101,6 +101,21 @@ void D_DrawSolidSurface (surf_t *surf, int color)
|
||||||
p32dest[u] = pix;
|
p32dest[u] = pix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (r_pixbytes == 2)
|
||||||
|
{
|
||||||
|
unsigned short *p16dest;
|
||||||
|
pix = vid.colormap16[color];
|
||||||
|
for (span=surf->spans ; span ; span=span->pnext)
|
||||||
|
{
|
||||||
|
p16dest = (unsigned short *)d_viewbuffer + screenwidth*span->v;
|
||||||
|
u = span->u;
|
||||||
|
u2 = span->u + span->count - 1;
|
||||||
|
p16dest[u] = pix;
|
||||||
|
|
||||||
|
for ( ; u <= u2 ; u++)
|
||||||
|
p16dest[u] = pix;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pix = (color<<24) | (color<<16) | (color<<8) | color;
|
pix = (color<<24) | (color<<16) | (color<<8) | color;
|
||||||
|
|
Loading…
Reference in a new issue