From 1a9dc27f4ef6b43316cb263ad15c36f3dde35338 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 20 Sep 2008 20:41:26 +0000 Subject: Replace all use of screens[0] by I_VideoBuffer. Subversion-branch: /branches/raven-branch Subversion-revision: 1249 --- src/doom/am_map.c | 5 +---- src/doom/f_finale.c | 4 ++-- src/doom/f_wipe.c | 2 +- src/doom/g_game.c | 4 ++-- src/doom/r_draw.c | 4 ++-- src/doom/wi_stuff.c | 2 +- src/i_scale.c | 2 +- src/i_video.c | 1 - src/v_video.c | 47 +++++++++++++++++++++++------------------------ 9 files changed, 33 insertions(+), 38 deletions(-) (limited to 'src') diff --git a/src/doom/am_map.c b/src/doom/am_map.c index e2b84e6d..115a1878 100644 --- a/src/doom/am_map.c +++ b/src/doom/am_map.c @@ -288,9 +288,6 @@ cheatseq_t cheat_amap = CHEAT("iddt", 0); static boolean stopped = true; extern boolean viewactive; -//extern byte screens[][SCREENWIDTH*SCREENHEIGHT]; - - void V_MarkRect @@ -459,7 +456,7 @@ void AM_initVariables(void) static event_t st_notify = { ev_keyup, AM_MSGENTERED, 0, 0 }; automapactive = true; - fb = screens[0]; + fb = I_VideoBuffer; f_oldloc.x = INT_MAX; amclock = 0; diff --git a/src/doom/f_finale.c b/src/doom/f_finale.c index 974dc32e..586e096d 100644 --- a/src/doom/f_finale.c +++ b/src/doom/f_finale.c @@ -246,7 +246,7 @@ void F_TextWrite (void) // erase the entire screen to a tiled background src = W_CacheLumpName ( finaleflat , PU_CACHE); - dest = screens[0]; + dest = I_VideoBuffer; for (y=0 ; ycolumnofs[col])); - desttop = screens[0]+x; + desttop = I_VideoBuffer + x; // step through the posts in a column while (column->topdelta != 0xff ) diff --git a/src/doom/f_wipe.c b/src/doom/f_wipe.c index 83cb8584..efc678ca 100644 --- a/src/doom/f_wipe.c +++ b/src/doom/f_wipe.c @@ -283,7 +283,7 @@ wipe_ScreenWipe { go = 1; // wipe_scr = (byte *) Z_Malloc(width*height, PU_STATIC, 0); // DEBUG - wipe_scr = screens[0]; + wipe_scr = I_VideoBuffer; (*wipes[wipeno*3])(width, height, ticks); } diff --git a/src/doom/g_game.c b/src/doom/g_game.c index 221a898a..42587b15 100644 --- a/src/doom/g_game.c +++ b/src/doom/g_game.c @@ -305,14 +305,14 @@ void G_DrawMouseSpeedBox(void) color = COLOR_BLACK; } - screens[0][(box_y - 4) * SCREENWIDTH + box_x + x + 1] = color; + I_VideoBuffer[(box_y - 4) * SCREENWIDTH + box_x + x + 1] = color; } // Draw red line for (y=box_y - 8; y