summaryrefslogtreecommitdiff
path: root/src/doom/r_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doom/r_draw.c')
-rw-r--r--src/doom/r_draw.c4
1 files changed, 2 insertions, 2 deletions
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);
}