aboutsummaryrefslogtreecommitdiff
path: root/redist/CNFGXDriver.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-20 22:31:18 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-20 22:50:20 -0600
commita1027bceebb36afc4fa9d082277478abd8101eda (patch)
treef9692cad198f8e39e4fa0fe6cdd4cf1d5abcef5c /redist/CNFGXDriver.c
parent3c007f47a30b70f00fd642b14ef8f4127c46ffc3 (diff)
downloadlibsurvive-a1027bceebb36afc4fa9d082277478abd8101eda.tar.gz
libsurvive-a1027bceebb36afc4fa9d082277478abd8101eda.tar.bz2
Enabled and then cleaned up warnings
Diffstat (limited to 'redist/CNFGXDriver.c')
-rw-r--r--redist/CNFGXDriver.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/redist/CNFGXDriver.c b/redist/CNFGXDriver.c
index 91b7233..6037eff 100644
--- a/redist/CNFGXDriver.c
+++ b/redist/CNFGXDriver.c
@@ -215,10 +215,10 @@ void CNFGHandleInput()
XEvent report;
int bKeyDirection = 1;
- int r;
+
while( XPending( CNFGDisplay ) )
{
- r=XNextEvent( CNFGDisplay, &report );
+ XNextEvent(CNFGDisplay, &report);
bKeyDirection = 1;
switch (report.type)
@@ -264,7 +264,7 @@ void CNFGUpdateScreenWithBitmap( unsigned long * data, int w, int h )
static int depth;
static int lw, lh;
static unsigned char * lbuffer;
- int r, ls;
+ int r;
if( !xi )
{
@@ -283,8 +283,6 @@ void CNFGUpdateScreenWithBitmap( unsigned long * data, int w, int h )
lh = h;
}
- ls = lw * lh;
-
XPutImage(CNFGDisplay, CNFGWindow, CNFGWindowGC, xi, 0, 0, 0, 0, w, h );
}