blob: 01c44c3e83c87fad32ff4aa4f28bfd9c211ccb96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--- ui/text_win.C.orig Sun Jun 18 19:56:57 1995
+++ ui/text_win.C Thu Jun 15 08:37:50 2000
@@ -17,6 +17,7 @@
*/
#include "text_win.H"
+#include <sys/time.h>
#include <assert.h>
#include <stdlib.h>
@@ -407,14 +408,22 @@
long time_elapsed;
long speed;
+#ifdef __FreeBSD__
+ gettimeofday(&clk,(struct timezone *)NULL);
+#else
gettimeofday(&clk,(timezone *)NULL);
+#endif
time_elapsed = (clk.tv_sec - last_click.tv_sec)*100;
time_elapsed+=(clk.tv_usec - last_click.tv_usec)/10000;
speed = atol(click_speed);
if((time_elapsed<speed) && (callback!=NULL))
retval = (*(callback))(callback_data);
}
+#ifdef __FreeBSD__
+ gettimeofday(&last_click,(struct timezone *)NULL);
+#else
gettimeofday(&last_click,(timezone *)NULL);
+#endif
text.inverse=true;
TList.Write(text);
if(!SendEventFlag)
|