1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- $OpenBSD: patch-xgraphics_c,v 1.1 2017/05/25 18:09:55 espie Exp $
- Index: xgraphics.c
- --- xgraphics.c.orig
- +++ xgraphics.c
- @@ -265,7 +265,7 @@ void placate_x()
- XConfigureEvent *xce;
- XMotionEvent *xme;
- XButtonEvent *xbe;
- - checkX;
- + checkX();
-
- while(XCheckWindowEvent(dpy, win, EVENT_MASK, (XEvent *)&event))
-
- @@ -307,14 +307,14 @@ void check_X11_stop() {
-
- if (--count == 0) {
- count = 300;
- - checkX;
- + checkX();
- placate_x();
- }
- }
-
- int get_button()
- {
- - checkX;
- + checkX(0);
-
- placate_x();
-
- @@ -323,7 +323,7 @@ int get_button()
-
- int get_mouse_x()
- {
- - checkX;
- + checkX(0);
-
- placate_x();
-
- @@ -333,7 +333,7 @@ int get_mouse_x()
-
- int get_mouse_y()
- {
- - checkX;
- + checkX(0);
-
- placate_x();
-
|