mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2025-01-06 18:29:59 +00:00
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:
parent
ea2a67e2d3
commit
10b4d20370
@ -274,7 +274,12 @@ draw_tile(U8 tileNumber)
|
||||
|
||||
}
|
||||
|
||||
#ifdef GFXGS
|
||||
// fix crash I hope
|
||||
fb += 4; /* next tile */
|
||||
#else
|
||||
fb += 8; /* next tile */
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -56,6 +56,8 @@ screen_introMain(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
printf("screen_introMain %d\n", seq);
|
||||
|
||||
switch (seq) {
|
||||
case 1: /* dispay hall of fame */
|
||||
sysvid_clear();
|
||||
@ -124,9 +126,15 @@ screen_introMain(void)
|
||||
#ifdef GFXPC
|
||||
draw_filter = 0x5555;
|
||||
#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",
|
||||
game_hscores[i].score, game_hscores[i].name);
|
||||
#endif
|
||||
s[26] = '\377'; s[27] = '\377'; s[28] = '\376';
|
||||
draw_tllst = s;
|
||||
draw_tilesList();
|
||||
|
@ -282,7 +282,7 @@ sysvid_init(void)
|
||||
sysvid_fb = (U8*)0x12000;
|
||||
|
||||
// SHR ON
|
||||
//*VIDEO_REGISTER|=0xC0;
|
||||
*VIDEO_REGISTER|=0xC0;
|
||||
|
||||
// ENABLE Shadowing of SHR
|
||||
*SHADOW_REGISTER&=~0x08; // Shadow Enable
|
||||
|
Loading…
Reference in New Issue
Block a user