Restore the V_Clear function

I removed it before because I had missed the point about clearing the
screen when changing "details" (= the level of detail).
This commit is contained in:
Lephenixnoir 2021-08-03 15:04:56 +02:00
parent e4c06f1ec5
commit 92c1cfe522
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
3 changed files with 10 additions and 1 deletions

1
README
View File

@ -12,7 +12,6 @@ CGDOOM is licensed under GPLv2 as a derivative work of both the original DOOM
sources (GPL) and nDoom (GPLv2). See LICENSE.
TODO:
-> Fix screen not cleared when changing resolution
-> Shareware WAD crashes at the end of E1M4 (and in E1M9)
-> Ultimate DOOM WAD runs out of memory at the end of E1M2
-> Supply more VRAM memory to internal allocator

View File

@ -558,6 +558,8 @@ void R_SetViewSize( int blocks)
setblocks = blocks;
}
void V_Clear();
//
// R_ExecuteSetViewSize
//
@ -571,6 +573,8 @@ void R_ExecuteSetViewSize (void)
int startmap;
setsizeneeded = false;
/* CGDOOM-specific function */
V_Clear();
if (setblocks == 11)
{

View File

@ -366,3 +366,9 @@ void V_Init (void)
//Done since loading on real hardware takes so damn long
// I_PrepScreen();
}
/* CGDOOM-specific function to clear screen when changing window size */
void V_Clear (void)
{
memset(screens[0], 0, 320*(200-32));
}