pkgsrc/graphics/xart/patches/patch-ab
2012-11-01 19:53:04 +00:00

35 lines
922 B
Text

$NetBSD: patch-ab,v 1.3 2012/11/01 19:53:04 joerg Exp $
--- dynPenOp.c.orig 1998-04-12 15:07:04.000000000 +0000
+++ dynPenOp.c
@@ -24,11 +24,12 @@
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/cursorfont.h>
+#include <time.h>
#include "xpaint.h"
#include "misc.h"
#include "Paint.h"
-#define XTIMEOUT ((unsigned long)(1.5*1000/HZ)) /* ms, should be larger than 1000/HZ */
+#define XTIMEOUT ((unsigned long)(1.5*1000/CLK_TCK)) /* ms, should be larger than 1000/HZ */
typedef struct {
float startx, starty;
@@ -185,7 +186,7 @@ timeout(XtPointer client_data, XtInterva
XPeekIfEvent(XtDisplay(l->w), &ev, dummy_pred, NULL);
if (ev.type == MotionNotify)
- return;
+ return 0;
/* It's a PropertyNotify */
l->tid = 0;
@@ -194,6 +195,7 @@ timeout(XtPointer client_data, XtInterva
me.time = ev.xproperty.time;
motion(l->w, l, &me, l->opinfo);
+ return 0;
}
static void