shithub: choc

Download patch

ref: f794c7692bac019f9f91cc821382a3f2d3b1011d
parent: 52619cdce58266cc5f2cec54c5cbc257500e6010
author: Simon Howard <fraggle@soulsphere.org>
date: Fri Jan 1 16:51:42 EST 2016

video: Remove unused variables.

Some of these are the result of the previous commit removing software
scaling code, and some are because of a merge conflict merging the
disk icon code.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -164,13 +164,8 @@
 // Only display the disk icon if more then this much bytes have been read
 // during the previous tic.
 
-static const int diskicon_threshold = 20*1024;
 int diskicon_readbytes = 0;
 
-// if true, I_VideoBuffer is screen->pixels
-
-static boolean native_surface;
-
 // Screen width and height, from configuration file.
 
 int screen_width = SCREENWIDTH;
@@ -226,11 +221,8 @@
 
 static grabmouse_callback_t grabmouse_callback = NULL;
 
-// disk image data and background overwritten by the disk to be
-// restored by EndRead
+// Does the window currently have focus?
 
-static byte *disk_image = NULL;
-static byte *saved_background;
 static boolean window_focused = true;
 
 // Empty mouse cursor