Fix GS Specific Crashes due to type size differences, intro / high score sequence plays, high score screen is blank, but at least it doesn't crash.

This commit is contained in:
dwsJason
2018-08-17 21:29:31 -04:00
parent ea2a67e2d3
commit 10b4d20370
3 changed files with 15 additions and 2 deletions

View File

@@ -274,7 +274,12 @@ draw_tile(U8 tileNumber)
} }
#ifdef GFXGS
// fix crash I hope
fb += 4; /* next tile */
#else
fb += 8; /* next tile */ fb += 8; /* next tile */
#endif
} }
/* /*

View File

@@ -56,6 +56,8 @@ screen_introMain(void)
#endif #endif
} }
printf("screen_introMain %d\n", seq);
switch (seq) { switch (seq) {
case 1: /* dispay hall of fame */ case 1: /* dispay hall of fame */
sysvid_clear(); sysvid_clear();
@@ -124,9 +126,15 @@ screen_introMain(void)
#ifdef GFXPC #ifdef GFXPC
draw_filter = 0x5555; draw_filter = 0x5555;
#endif #endif
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++)
{
#ifdef IIGS
sprintf((char *)s, "%06ld@@@....@@@%s\n",
game_hscores[i].score, game_hscores[i].name);
#else
sprintf((char *)s, "%06d@@@....@@@%s", sprintf((char *)s, "%06d@@@....@@@%s",
game_hscores[i].score, game_hscores[i].name); game_hscores[i].score, game_hscores[i].name);
#endif
s[26] = '\377'; s[27] = '\377'; s[28] = '\376'; s[26] = '\377'; s[27] = '\377'; s[28] = '\376';
draw_tllst = s; draw_tllst = s;
draw_tilesList(); draw_tilesList();

View File

@@ -282,7 +282,7 @@ sysvid_init(void)
sysvid_fb = (U8*)0x12000; sysvid_fb = (U8*)0x12000;
// SHR ON // SHR ON
//*VIDEO_REGISTER|=0xC0; *VIDEO_REGISTER|=0xC0;
// ENABLE Shadowing of SHR // ENABLE Shadowing of SHR
*SHADOW_REGISTER&=~0x08; // Shadow Enable *SHADOW_REGISTER&=~0x08; // Shadow Enable