From a1027bceebb36afc4fa9d082277478abd8101eda Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Fri, 20 Apr 2018 22:31:18 -0600 Subject: Enabled and then cleaned up warnings --- redist/CNFGXDriver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'redist/CNFGXDriver.c') 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 ); } -- cgit v1.2.3