openbsd-ports/x11/mplayer/patches/patch-TOOLS_subfont-c_subfont_c
brad 6f08bc466e upgrade to mplayer 0.90rc4
based on diff from MAINTAINER for 0.90rc3
2003-02-16 07:25:18 +00:00

23 lines
609 B
Plaintext

$OpenBSD: patch-TOOLS_subfont-c_subfont_c,v 1.3 2003/02/16 07:25:18 brad Exp $
--- TOOLS/subfont-c/subfont.c.orig Tue Jan 14 06:52:33 2003
+++ TOOLS/subfont-c/subfont.c Tue Jan 14 06:50:16 2003
@@ -834,6 +834,18 @@ unsigned gmatrix(unsigned *m, int r, int
}
+// Returns current time in microseconds
+
+#include <sys/time.h>
+
+unsigned int GetTimer(){
+ struct timeval tv;
+ struct timezone tz;
+// float s;
+ gettimeofday(&tv,&tz);
+// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
+ return (tv.tv_sec*1000000+tv.tv_usec);
+}
void alpha() {
unsigned int ttime;
int const g_r = ceil(radius);