mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2025-08-15 14:27:19 +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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -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();
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user