ref: e2e44080a665c68dffdf1863fd1902be395adb10
parent: 90056c594d74eb1b938e34d02833435bd23e0bf7
author: Simon Howard <fraggle@gmail.com>
date: Sat Sep 20 15:44:25 EDT 2008
Make the wipe code use dynamically allocated transition screens. Subversion-branch: /branches/raven-branch Subversion-revision: 1244
--- a/src/doom/f_wipe.c
+++ b/src/doom/f_wipe.c
@@ -230,6 +230,8 @@
int ticks )
{
Z_Free(y);
+ Z_Free(wipe_scr_start);
+ Z_Free(wipe_scr_end);
return 0;
}
@@ -240,7 +242,7 @@
int width,
int height )
{
- wipe_scr_start = screens[2];
+ wipe_scr_start = Z_Malloc(SCREENWIDTH * SCREENHEIGHT, PU_STATIC, NULL);
I_ReadScreen(wipe_scr_start);
return 0;
}
@@ -252,7 +254,7 @@
int width,
int height )
{
- wipe_scr_end = screens[3];
+ wipe_scr_end = Z_Malloc(SCREENWIDTH * SCREENHEIGHT, PU_STATIC, NULL);
I_ReadScreen(wipe_scr_end);
V_DrawBlock(x, y, 0, width, height, wipe_scr_start); // restore start scr.
return 0;
@@ -298,5 +300,5 @@
}
return !go;
-
}
+