View Single Post
Old 05-24-2018   #1
Monster psychic cat
Default "homremoval" cvar disregards non-green resolutions



Line 777 of v_video.c checks for BASEVIDWIDTH and BASEVIDHEIGHT, rather than vid.width and vid.height:

Code:
if (x == 0 && y == 0 && w == BASEVIDWIDTH && h == BASEVIDHEIGHT)
{ // Clear the entire screen, from dest to deststop. Yes, this really works.
	memset(screens[0], (UINT8)(c&255), vid.width * vid.height * vid.bpp);
	return;
}
It conflicts with the actual homremoval code:

Code:
V_DrawFill(0, 0, vid.width, vid.height, 31);

Last edited by Monster Iestyn; 09-02-2018 at 12:55 AM.
Monster psychic cat is offline