diff options
Diffstat (limited to 'src/hexen/r_draw.c')
-rw-r--r-- | src/hexen/r_draw.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hexen/r_draw.c b/src/hexen/r_draw.c index 9cf3f45a..9a3264f6 100644 --- a/src/hexen/r_draw.c +++ b/src/hexen/r_draw.c @@ -23,6 +23,8 @@ #include "h2def.h" +#include "i_system.h" +#include "i_video.h" #include "r_local.h" /* @@ -470,7 +472,7 @@ void R_InitBuffer(int width, int height) else viewwindowy = (SCREENHEIGHT - SBARHEIGHT - height) >> 1; for (i = 0; i < height; i++) - ylookup[i] = screen + (i + viewwindowy) * SCREENWIDTH; + ylookup[i] = I_VideoBuffer + (i + viewwindowy) * SCREENWIDTH; } @@ -494,7 +496,7 @@ void R_DrawViewBorder(void) return; src = W_CacheLumpName("F_022", PU_CACHE); - dest = screen; + dest = I_VideoBuffer; for (y = 0; y < SCREENHEIGHT - SBARHEIGHT; y++) { @@ -560,7 +562,7 @@ void R_DrawTopBorder(void) } */ src = W_CacheLumpName("F_022", PU_CACHE); - dest = screen; + dest = I_VideoBuffer; for (y = 0; y < 34; y++) { |