summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/i_video.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/i_video.c
parent33a62e8a8ebe8039101a2333e71bc2c2de8e5225 (diff)
downloadrockbox-45f2df0eba7a3ffa633a709e13d3b871592d2fc6.tar.gz
rockbox-45f2df0eba7a3ffa633a709e13d3b871592d2fc6.zip
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/i_video.c')
-rw-r--r--apps/plugins/doom/i_video.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index 69583f5e36..f7de1aa84c 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -16,7 +16,10 @@
16 * GNU General Public License for more details. 16 * GNU General Public License for more details.
17 * 17 *
18 * $Log$ 18 * $Log$
19 * Revision 1.11 2006/04/04 19:39:31 amiconn 19 * Revision 1.12 2006/04/05 06:37:37 kkurbjun
20 * 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
21 *
22 * Revision 1.11 2006-04-04 19:39:31 amiconn
20 * Doom on H1x0: Don't waste memory, the grayscale lib doesn't need that much, but properly tell the lib how much memory it may use. 23 * Doom on H1x0: Don't waste memory, the grayscale lib doesn't need that much, but properly tell the lib how much memory it may use.
21 * 24 *
22 * Revision 1.10 2006-04-04 12:00:53 dave 25 * Revision 1.10 2006-04-04 12:00:53 dave
@@ -79,7 +82,7 @@ static unsigned char *gbuf;
79#endif 82#endif
80 83
81#if defined(CPU_COLDFIRE) 84#if defined(CPU_COLDFIRE)
82static char fastscreen[LCD_WIDTH*LCD_HEIGHT] IBSS_ATTR; 85static char fastscreen[(LCD_WIDTH+1)*LCD_HEIGHT] IBSS_ATTR;
83#endif 86#endif
84static fb_data palette[256] IBSS_ATTR; 87static fb_data palette[256] IBSS_ATTR;
85static fb_data *paldata=NULL; 88static fb_data *paldata=NULL;
@@ -465,6 +468,6 @@ void I_InitGraphics(void)
465 d_screens[0] = fastscreen; 468 d_screens[0] = fastscreen;
466#else 469#else
467 // Don't know if this will fit in other IRAMs 470 // Don't know if this will fit in other IRAMs
468 d_screens[0] = malloc (SCREENWIDTH * SCREENHEIGHT * sizeof(unsigned char)); 471 d_screens[0] = malloc ((SCREENWIDTH+1) * SCREENHEIGHT * sizeof(unsigned char));
469#endif 472#endif
470} 473}