Fix crash in DrawMainMenusBackdrop

Remove some obsolete and dysfunctional code that was triggered when
binked menu background was implemented.
This commit is contained in:
Timotej Lazar 2020-04-18 21:56:33 +02:00
parent 805bc3e30e
commit 152e6d7f26

View file

@ -4924,31 +4924,6 @@ extern void DrawMainMenusBackdrop(void)
{
DrawAvPMenuGfx(AVPMENUGFX_BACKDROP,0,0,ONE_FIXED+1,AVPMENUFORMAT_LEFTJUSTIFIED);
}
else
{
extern unsigned char *ScreenBuffer;
unsigned int *screenPtr = (unsigned int*)ScreenBuffer;
int i;
i = ScreenDescriptorBlock.SDB_Width * 60 /2;
do
{
*screenPtr++=0;
}
while(--i);
screenPtr+=ScreenDescriptorBlock.SDB_Width * 360/2;
i = ScreenDescriptorBlock.SDB_Width * 60 /2;
do
{
*screenPtr++=0;
}
while(--i);
}
#else
extern DDPIXELFORMAT DisplayPixelFormat;
extern unsigned char *ScreenBuffer;