summaryrefslogtreecommitdiff
path: root/do_segs.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
commit9105cd947989db96a61c83493c44a336bf10a18c (patch)
tree44e736a163ffea3bde0a475734960c28233b9b1a /do_segs.c
parent76312369bde4267f6405a4e1d26697258cc06b32 (diff)
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'do_segs.c')
-rw-r--r--do_segs.c63
1 files changed, 23 insertions, 40 deletions
diff --git a/do_segs.c b/do_segs.c
index 718751d..8606217 100644
--- a/do_segs.c
+++ b/do_segs.c
@@ -21,23 +21,22 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************************/
+/* $XFree86: xc/programs/x11perf/do_segs.c,v 1.5 2001/01/17 23:45:11 dawes Exp $ */
#include "x11perf.h"
static XSegment *segments;
static GC pgc;
-static void GenerateSegments(xp, p, ddashed)
- XParms xp;
- Parms p;
- Bool ddashed;
+static void
+GenerateSegments(XParms xp, Parms p, Bool ddashed)
{
int size;
int half;
int i;
int rows; /* Number of rows filled in current column */
int x, y; /* base of square to draw in */
- int x1, y1, x2, y2; /* offsets into square */
+ int x1=0, y1=0, x2=0, y2=0; /* offsets into square */
int phase; /* how far into 0..8*size we are */
int phaseinc; /* how much to increment phase at each segment */
int size8; /* 8 * size */
@@ -168,19 +167,15 @@ static void GenerateSegments(xp, p, ddashed)
}
}
-int InitSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitSegments(XParms xp, Parms p, int reps)
{
GenerateSegments(xp, p, False);
return reps;
}
-int InitDashedSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitDashedSegments(XParms xp, Parms p, int reps)
{
char dashes[2];
@@ -197,10 +192,8 @@ int InitDashedSegments(xp, p, reps)
return reps;
}
-int InitDoubleDashedSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitDoubleDashedSegments(XParms xp, Parms p, int reps)
{
char dashes[2];
@@ -217,10 +210,8 @@ int InitDoubleDashedSegments(xp, p, reps)
return reps;
}
-int InitHorizSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitHorizSegments(XParms xp, Parms p, int reps)
{
int size;
int half;
@@ -275,10 +266,8 @@ int InitHorizSegments(xp, p, reps)
return reps;
}
-int InitWideHorizSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitWideHorizSegments(XParms xp, Parms p, int reps)
{
int size;
@@ -294,10 +283,8 @@ int InitWideHorizSegments(xp, p, reps)
}
-int InitVertSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitVertSegments(XParms xp, Parms p, int reps)
{
int size;
int half;
@@ -354,10 +341,8 @@ int InitVertSegments(xp, p, reps)
return reps;
}
-int InitWideVertSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitWideVertSegments(XParms xp, Parms p, int reps)
{
int size;
@@ -373,10 +358,8 @@ int InitWideVertSegments(xp, p, reps)
}
-void DoSegments(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+void
+DoSegments(XParms xp, Parms p, int reps)
{
int i;
@@ -390,12 +373,12 @@ void DoSegments(xp, p, reps)
pgc = xp->fggc;
else
pgc = xp->bggc;
+ CheckAbort ();
}
}
-void EndSegments(xp, p)
- XParms xp;
- Parms p;
+void
+EndSegments(XParms xp, Parms p)
{
free(segments);
}