32 lines
781 B
Plaintext
32 lines
781 B
Plaintext
$OpenBSD: patch-TOOLS_subfont-c_subfont_c,v 1.2 2002/10/28 17:56:08 espie Exp $
|
|
--- TOOLS/subfont-c/subfont.c.orig Sun Aug 18 10:21:24 2002
|
|
+++ TOOLS/subfont-c/subfont.c Mon Oct 28 18:44:53 2002
|
|
@@ -509,7 +509,7 @@ void outline(
|
|
int msize) {
|
|
|
|
int x, y;
|
|
-#if 1
|
|
+#if 0
|
|
for (y = 0; y<height; y++) {
|
|
for (x = 0; x<width; x++) {
|
|
const int src= s[x];
|
|
@@ -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);
|