File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ void I_GetEvent(void);
8989// The screen buffer; this is modified to draw things to the screen
9090
9191byte *I_VideoBuffer = NULL ;
92- byte *I_VideoBuffer_FB = NULL ;
9392
9493// If true, game is running as a screensaver
9594
@@ -221,7 +220,6 @@ void I_InitGraphics (void)
221220
222221 /* Allocate screen to draw to */
223222 I_VideoBuffer = (byte*)Z_Malloc (SCREENWIDTH * SCREENHEIGHT, PU_STATIC, NULL ); // For DOOM to draw on
224- I_VideoBuffer_FB = (byte*)malloc (s_Fb.xres * s_Fb.yres * (s_Fb.bits_per_pixel /8 )); // For a single write() syscall to fbdev
225223
226224 screenvisible = true ;
227225
@@ -232,7 +230,6 @@ void I_InitGraphics (void)
232230void I_ShutdownGraphics (void )
233231{
234232 Z_Free (I_VideoBuffer);
235- free (I_VideoBuffer_FB);
236233}
237234
238235void I_StartFrame (void )
@@ -270,7 +267,7 @@ void I_FinishUpdate (void)
270267
271268 /* DRAW SCREEN */
272269 line_in = (unsigned char *) I_VideoBuffer;
273- line_out = (unsigned char *) I_VideoBuffer_FB ;
270+ line_out = (unsigned char *) DG_ScreenBuffer ;
274271
275272 y = SCREENHEIGHT;
276273
@@ -294,8 +291,6 @@ void I_FinishUpdate (void)
294291 line_in += SCREENWIDTH;
295292 }
296293
297- memcpy (DG_ScreenBuffer, I_VideoBuffer_FB, (SCREENHEIGHT * fb_scaling * (s_Fb.bits_per_pixel / 8 )) * s_Fb.xres );
298-
299294 DG_DrawFrame ();
300295}
301296
You can’t perform that action at this time.
0 commit comments