summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/i_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/i_video.c')
-rw-r--r--apps/plugins/doom/i_video.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/plugins/doom/i_video.c b/apps/plugins/doom/i_video.c
index 6adb9491a4..ea6389deab 100644
--- a/apps/plugins/doom/i_video.c
+++ b/apps/plugins/doom/i_video.c
@@ -16,7 +16,11 @@
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.4 2006/04/02 20:45:24 kkurbjun 19 * Revision 1.5 2006/04/03 08:51:08 bger
20 * Patch #4864 by Jonathan Gordon: text editor plugin, with some changes by me.
21 * Also correct a var clash between the rockbox's gui api and doom plugin
22 *
23 * Revision 1.4 2006-04-02 20:45:24 kkurbjun
20 * Properly ifdef H300 video code, fix commented line handling rockbox volume 24 * Properly ifdef H300 video code, fix commented line handling rockbox volume
21 * 25 *
22 * Revision 1.3 2006-04-02 01:52:44 kkurbjun 26 * Revision 1.3 2006-04-02 01:52:44 kkurbjun
@@ -336,7 +340,7 @@ void I_FinishUpdate (void)
336 *(volatile unsigned short *) 0xf0000002 = 0; // value 340 *(volatile unsigned short *) 0xf0000002 = 0; // value
337 *(volatile unsigned short *) 0xf0000000 = 0x22; // GRAM 341 *(volatile unsigned short *) 0xf0000000 = 0x22; // GRAM
338 342
339 unsigned char *screenptr=screens[0]; 343 unsigned char *screenptr=d_screens[0];
340 int wcnt=0, hcnt=0; 344 int wcnt=0, hcnt=0;
341 345
342 while(hcnt<LCD_HEIGHT) 346 while(hcnt<LCD_HEIGHT)
@@ -358,7 +362,7 @@ void I_FinishUpdate (void)
358 { 362 {
359 for (x = 0; x < LCD_WIDTH; x++) 363 for (x = 0; x < LCD_WIDTH; x++)
360 { 364 {
361 paletteIndex = screens[0][y*SCREENWIDTH + x]; 365 paletteIndex = d_screens[0][y*SCREENWIDTH + x];
362 rb->lcd_framebuffer[y * LCD_WIDTH + x] = palette[paletteIndex]; 366 rb->lcd_framebuffer[y * LCD_WIDTH + x] = palette[paletteIndex];
363 } 367 }
364 } 368 }
@@ -371,7 +375,7 @@ void I_FinishUpdate (void)
371// 375//
372void I_ReadScreen (byte* scr) 376void I_ReadScreen (byte* scr)
373{ 377{
374 memcpy (scr, screens[0], SCREENWIDTH*SCREENHEIGHT); 378 memcpy (scr, d_screens[0], SCREENWIDTH*SCREENHEIGHT);
375} 379}
376 380
377// 381//
@@ -399,9 +403,9 @@ void I_InitGraphics(void)
399 403
400#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 404#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
401 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); 405 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
402 screens[0] = fastscreen; 406 d_screens[0] = fastscreen;
403#else 407#else
404 // Don't know if this will fit in other IRAMs 408 // Don't know if this will fit in other IRAMs
405 screens[0] = malloc (SCREENWIDTH * SCREENHEIGHT * sizeof(unsigned char)); 409 d_screens[0] = malloc (SCREENWIDTH * SCREENHEIGHT * sizeof(unsigned char));
406#endif 410#endif
407} 411}