From 059c2fc6bbf2957b98fb20fbee2cc14a26f443f6 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 9 Feb 2008 19:17:19 +0000 Subject: Remove some unneeded functions from i_system.c. Make I_Error exit using exit() rather than abort(). Display a message box with the error on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1065 --- src/v_video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/v_video.c') diff --git a/src/v_video.c b/src/v_video.c index 3c6a2311..a4a556bf 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -40,6 +40,7 @@ #include "v_video.h" +#include "z_zone.h" // Each screen is [SCREENWIDTH*SCREENHEIGHT]; byte* screens[5]; @@ -484,8 +485,11 @@ void V_Init (void) // stick these in low dos memory on PCs - base = I_AllocLow (SCREENWIDTH*SCREENHEIGHT*4); + base = Z_Malloc(SCREENWIDTH * SCREENHEIGHT * 4, PU_STATIC, NULL); for (i=0 ; i<4 ; i++) + { screens[i] = base + i*SCREENWIDTH*SCREENHEIGHT; + } } + -- cgit v1.2.3