diff options
author | Simon Howard | 2008-10-01 18:00:13 +0000 |
---|---|---|
committer | Simon Howard | 2008-10-01 18:00:13 +0000 |
commit | f8b216522bb4a2f2a8279412ff949955706d727e (patch) | |
tree | 62f1e30c973f6af4da63770f11f7448b4489d244 /src/hexen/r_draw.c | |
parent | bf5e84859e2aca7f543f88a4a93bb971332aa989 (diff) | |
download | chocolate-doom-f8b216522bb4a2f2a8279412ff949955706d727e.tar.gz chocolate-doom-f8b216522bb4a2f2a8279412ff949955706d727e.tar.bz2 chocolate-doom-f8b216522bb4a2f2a8279412ff949955706d727e.zip |
Use common versions of ticcmd_t and event_t for Hexen code. Remove old
i_video definitions and use common i_video.c interface.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1312
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++) { |