Fix crash in DrawMainMenusBackdrop
Remove some obsolete and dysfunctional code that was triggered when binked menu background was implemented.
This commit is contained in:
parent
805bc3e30e
commit
152e6d7f26
1 changed files with 0 additions and 25 deletions
|
@ -4924,31 +4924,6 @@ extern void DrawMainMenusBackdrop(void)
|
||||||
{
|
{
|
||||||
DrawAvPMenuGfx(AVPMENUGFX_BACKDROP,0,0,ONE_FIXED+1,AVPMENUFORMAT_LEFTJUSTIFIED);
|
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
|
#else
|
||||||
extern DDPIXELFORMAT DisplayPixelFormat;
|
extern DDPIXELFORMAT DisplayPixelFormat;
|
||||||
extern unsigned char *ScreenBuffer;
|
extern unsigned char *ScreenBuffer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue