diff options
author | Simon Howard | 2008-02-09 19:17:19 +0000 |
---|---|---|
committer | Simon Howard | 2008-02-09 19:17:19 +0000 |
commit | 059c2fc6bbf2957b98fb20fbee2cc14a26f443f6 (patch) | |
tree | a7145e0605d5fd9712f3a4dacc298c53fa7adbf8 /src/v_video.c | |
parent | 57eeaf1d3a8a0fd090e2ccfc37d05131222ec37c (diff) | |
download | chocolate-doom-059c2fc6bbf2957b98fb20fbee2cc14a26f443f6.tar.gz chocolate-doom-059c2fc6bbf2957b98fb20fbee2cc14a26f443f6.tar.bz2 chocolate-doom-059c2fc6bbf2957b98fb20fbee2cc14a26f443f6.zip |
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
Diffstat (limited to 'src/v_video.c')
-rw-r--r-- | src/v_video.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; + } } + |