diff options
Diffstat (limited to 'redist/CNFGXDriver.c')
-rw-r--r-- | redist/CNFGXDriver.c | 8 |
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 ); } |