diff options
Diffstat (limited to 'apps/plugins/doom/i_video.c')
-rw-r--r-- | apps/plugins/doom/i_video.c | 9 |
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) |
82 | static char fastscreen[LCD_WIDTH*LCD_HEIGHT] IBSS_ATTR; | 85 | static char fastscreen[(LCD_WIDTH+1)*LCD_HEIGHT] IBSS_ATTR; |
83 | #endif | 86 | #endif |
84 | static fb_data palette[256] IBSS_ATTR; | 87 | static fb_data palette[256] IBSS_ATTR; |
85 | static fb_data *paldata=NULL; | 88 | static 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 | } |