summaryrefslogtreecommitdiff
path: root/src/heretic/am_map.c
diff options
context:
space:
mode:
authorSimon Howard2008-09-20 21:37:33 +0000
committerSimon Howard2008-09-20 21:37:33 +0000
commit71d54112ed3ffc780846a222e3dd45368acd3d88 (patch)
tree98f47a604f591ebf2919612a36291b12b64b86da /src/heretic/am_map.c
parent7c1407ea7171f83287b720ec65450940c9cbf158 (diff)
downloadchocolate-doom-71d54112ed3ffc780846a222e3dd45368acd3d88.tar.gz
chocolate-doom-71d54112ed3ffc780846a222e3dd45368acd3d88.tar.bz2
chocolate-doom-71d54112ed3ffc780846a222e3dd45368acd3d88.zip
Replace heretic "screen" variable with I_VideoBuffer.
Subversion-branch: /branches/raven-branch Subversion-revision: 1253
Diffstat (limited to 'src/heretic/am_map.c')
-rw-r--r--src/heretic/am_map.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/heretic/am_map.c b/src/heretic/am_map.c
index 44f9b1c9..77fa2524 100644
--- a/src/heretic/am_map.c
+++ b/src/heretic/am_map.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include "doomdef.h"
+#include "i_video.h"
#include "p_local.h"
#include "am_map.h"
#include "am_data.h"
@@ -330,7 +331,7 @@ void AM_initVariables(void)
//static event_t st_notify = { ev_keyup, AM_MSGENTERED };
automapactive = true;
- fb = screen;
+ fb = I_VideoBuffer;
f_oldloc.x = INT_MAX;
amclock = 0;
@@ -779,16 +780,16 @@ void AM_clearFB(int color)
j = mapystart * finit_width;
for (i = 0; i < finit_height; i++)
{
- memcpy(screen + i * finit_width, maplump + j + mapxstart,
+ memcpy(I_VideoBuffer + i * finit_width, maplump + j + mapxstart,
finit_width - mapxstart);
- memcpy(screen + i * finit_width + finit_width - mapxstart,
+ memcpy(I_VideoBuffer + i * finit_width + finit_width - mapxstart,
maplump + j, mapxstart);
j += finit_width;
if (j >= finit_height * finit_width)
j = 0;
}
-// memcpy(screen, maplump, finit_width*finit_height);
+// memcpy(I_VideoBuffer, maplump, finit_width*finit_height);
// memset(fb, color, f_w*f_h);
}