viewrollangle: fill the empty hom with black by default

fills this mess with a blank color by default
This commit is contained in:
yellowtd 2017-03-16 01:57:38 -04:00
parent 58d02e6f2b
commit 932e0b2c88

View file

@ -2041,7 +2041,7 @@ Unoptimized version
float yst = (INT32)round((sinma * -hwidth + cosma * -hheight) + hheight);
// Fills the empty space with a solid color from palette index
//memset(screens[4], (UINT8)(31), vid.width*vid.height*vid.bpp);
memset(screens[4], (UINT8)(31), vid.width*vid.height*vid.bpp);
#define OUT_OF_RANGE (xs < 0 || xs >= vid.width || ys < 0 || ys >= height)
for (y = 0; y < hheight; y++) {