summaryrefslogtreecommitdiff
path: root/src/doom
diff options
context:
space:
mode:
Diffstat (limited to 'src/doom')
-rw-r--r--src/doom/am_map.c5
-rw-r--r--src/doom/f_finale.c4
-rw-r--r--src/doom/f_wipe.c2
-rw-r--r--src/doom/g_game.c4
-rw-r--r--src/doom/r_draw.c4
-rw-r--r--src/doom/wi_stuff.c2
6 files changed, 9 insertions, 12 deletions
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 ; y<SCREENHEIGHT ; y++)
{
@@ -592,7 +592,7 @@ F_DrawPatchCol
int count;
column = (column_t *)((byte *)patch + LONG(patch->columnofs[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<box_y; ++y)
{
- screens[0][y * SCREENWIDTH + box_x + redline_x] = COLOR_RED;
+ I_VideoBuffer[y * SCREENWIDTH + box_x + redline_x] = COLOR_RED;
}
}
diff --git a/src/doom/r_draw.c b/src/doom/r_draw.c
index 58ef41bc..d75aec3b 100644
--- a/src/doom/r_draw.c
+++ b/src/doom/r_draw.c
@@ -791,7 +791,7 @@ R_InitBuffer
// Preclaculate all row offsets.
for (i=0 ; i<height ; i++)
- ylookup[i] = screens[0] + (i+viewwindowy)*SCREENWIDTH;
+ ylookup[i] = I_VideoBuffer + (i+viewwindowy)*SCREENWIDTH;
}
@@ -900,7 +900,7 @@ R_VideoErase
// is not optiomal, e.g. byte by byte on
// a 32bit CPU, as GNU GCC/Linux libc did
// at one point.
- memcpy (screens[0]+ofs, screens[1]+ofs, count);
+ memcpy(I_VideoBuffer + ofs, screens[1] + ofs, count);
}
diff --git a/src/doom/wi_stuff.c b/src/doom/wi_stuff.c
index e0e0ad24..85243d84 100644
--- a/src/doom/wi_stuff.c
+++ b/src/doom/wi_stuff.c
@@ -410,7 +410,7 @@ static patch_t** lnames;
void WI_slamBackground(void)
{
- memcpy(screens[0], screens[1], SCREENWIDTH * SCREENHEIGHT);
+ memcpy(I_VideoBuffer, screens[1], SCREENWIDTH * SCREENHEIGHT);
V_MarkRect (0, 0, SCREENWIDTH, SCREENHEIGHT);
}