less crap makes better code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2659 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-10-15 12:44:56 +00:00
parent 0a4b247080
commit 87b66a8895

View file

@ -177,12 +177,6 @@ static Bool MapNotify_event_p (Display *dpy, XEvent *event, XPointer window)
event->xvisibility.window == (Window) window); event->xvisibility.window == (Window) window);
} }
#ifdef XLOCKMORE
extern void pre_merge_options (void);
#endif
static Atom XA_WM_PROTOCOLS, XA_WM_DELETE_WINDOW; static Atom XA_WM_PROTOCOLS, XA_WM_DELETE_WINDOW;
/* Dead-trivial event handling: exits if "q" or "ESC" are typed. /* Dead-trivial event handling: exits if "q" or "ESC" are typed.
@ -230,9 +224,11 @@ int screenhack_handle_event(Display *dpy, XEvent *event, bool *release)
break; break;
case Expose: case Expose:
screen_redraw(); screen_redraw();
/*
fprintf(stderr, "EXPOSE: x: %d y: %d width: %d height: %d\n", fprintf(stderr, "EXPOSE: x: %d y: %d width: %d height: %d\n",
event->xexpose.x, event->xexpose.y, event->xexpose.x, event->xexpose.y,
event->xexpose.width, event->xexpose.height); event->xexpose.width, event->xexpose.height);
*/
break; break;
case ButtonPress: case ButtonPress:
fprintf(stderr, "BUTTON PRESSED: x: %d y:%d\n",event->xbutton.x,event->xbutton.y); fprintf(stderr, "BUTTON PRESSED: x: %d y:%d\n",event->xbutton.x,event->xbutton.y);