summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/f_wipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/f_wipe.c')
-rw-r--r--apps/plugins/doom/f_wipe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/doom/f_wipe.c b/apps/plugins/doom/f_wipe.c
index a6251f295e..f51224f5ce 100644
--- a/apps/plugins/doom/f_wipe.c
+++ b/apps/plugins/doom/f_wipe.c
@@ -140,7 +140,7 @@ static int wipe_doMelt(int width, int height, int ticks)
140 return done; 140 return done;
141} 141}
142 142
143// CPhipps - modified to allocate and deallocate screens[2 to 3] as needed, saving memory 143// CPhipps - modified to allocate and deallocate d_screens[2 to 3] as needed, saving memory
144 144
145static int wipe_exitMelt(int width, int height, int ticks) 145static int wipe_exitMelt(int width, int height, int ticks)
146{ 146{
@@ -152,20 +152,20 @@ static int wipe_exitMelt(int width, int height, int ticks)
152 free(wipe_scr_end); 152 free(wipe_scr_end);
153 // Paranoia 153 // Paranoia
154 y = NULL; 154 y = NULL;
155 wipe_scr_start = wipe_scr_end = screens[SRC_SCR] = screens[DEST_SCR] = NULL; 155 wipe_scr_start = wipe_scr_end = d_screens[SRC_SCR] = d_screens[DEST_SCR] = NULL;
156 return 0; 156 return 0;
157} 157}
158 158
159int wipe_StartScreen(int x, int y, int width, int height) 159int wipe_StartScreen(int x, int y, int width, int height)
160{ 160{
161 wipe_scr_start = screens[SRC_SCR] = malloc(SCREENWIDTH * SCREENHEIGHT); 161 wipe_scr_start = d_screens[SRC_SCR] = malloc(SCREENWIDTH * SCREENHEIGHT);
162 V_CopyRect(x, y, 0, width, height, x, y, SRC_SCR, VPT_NONE ); // Copy start screen to buffer 162 V_CopyRect(x, y, 0, width, height, x, y, SRC_SCR, VPT_NONE ); // Copy start screen to buffer
163 return 0; 163 return 0;
164} 164}
165 165
166int wipe_EndScreen(int x, int y, int width, int height) 166int wipe_EndScreen(int x, int y, int width, int height)
167{ 167{
168 wipe_scr_end = screens[DEST_SCR] = malloc(SCREENWIDTH * SCREENHEIGHT); 168 wipe_scr_end = d_screens[DEST_SCR] = malloc(SCREENWIDTH * SCREENHEIGHT);
169 V_CopyRect(x, y, 0, width, height, x, y, DEST_SCR, VPT_NONE); // Copy end screen to buffer 169 V_CopyRect(x, y, 0, width, height, x, y, DEST_SCR, VPT_NONE); // Copy end screen to buffer
170 V_CopyRect(x, y, SRC_SCR, width, height, x, y, 0 , VPT_NONE); // restore start screen 170 V_CopyRect(x, y, SRC_SCR, width, height, x, y, 0 , VPT_NONE); // restore start screen
171 return 0; 171 return 0;
@@ -180,7 +180,7 @@ int wipe_ScreenWipe(int x, int y, int width, int height, int ticks)
180 if (!go) // initial stuff 180 if (!go) // initial stuff
181 { 181 {
182 go = 1; 182 go = 1;
183 wipe_scr = screens[0]; 183 wipe_scr = d_screens[0];
184 wipe_initMelt(width, height, ticks); 184 wipe_initMelt(width, height, ticks);
185 } 185 }
186 V_MarkRect(0, 0, width, height); // do a piece of wipe-in 186 V_MarkRect(0, 0, width, height); // do a piece of wipe-in