summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/f_finale.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-04-05 06:37:37 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-04-05 06:37:37 +0000
commit45f2df0eba7a3ffa633a709e13d3b871592d2fc6 (patch)
treea34acb94f8766ab7d953d9cf03b30a92a2984d22 /apps/plugins/doom/f_finale.c
parent33a62e8a8ebe8039101a2333e71bc2c2de8e5225 (diff)
downloadrockbox-45f2df0eba7a3ffa633a709e13d3b871592d2fc6.zip
rockbox-45f2df0eba7a3ffa633a709e13d3b871592d2fc6.tar.gz
rockbox-45f2df0eba7a3ffa633a709e13d3b871592d2fc6.tar.bz2
rockbox-45f2df0eba7a3ffa633a709e13d3b871592d2fc6.tar.xz
Fix finale text and try and prevent some data corruption due to the scaling code. Also allows the non-standard GP32 mods to work with some bounds checking. More comments are in v_video.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9511 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/f_finale.c')
-rw-r--r--apps/plugins/doom/f_finale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/doom/f_finale.c b/apps/plugins/doom/f_finale.c
index 4deb3df..3af27d2 100644
--- a/apps/plugins/doom/f_finale.c
+++ b/apps/plugins/doom/f_finale.c
@@ -304,7 +304,7 @@ void F_TextWrite (void)
}
w = SHORT (hu_font[c].width);
- if (cx+w > SCREENWIDTH)
+ if (cx+w > 320)
break;
// CPhipps - patch drawing updated
V_DrawNumPatch(cx, cy, 0, hu_font[c].lumpnum, CR_DEFAULT, VPT_STRETCH);
@@ -638,7 +638,7 @@ static void F_BunnyScroll (void)
laststage = stage;
}
- snprintf (name,sizeof(name), "END%i",stage);
+ snprintf (name,sizeof(name), "END%d",stage);
// CPhipps - patch drawing updated
V_DrawNamePatch((320-13*8)/2, (200-8*8)/2, 0, name, CR_DEFAULT, VPT_STRETCH);
}