summaryrefslogtreecommitdiff
path: root/do_valgc.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_valgc.c
parent76312369bde4267f6405a4e1d26697258cc06b32 (diff)
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'do_valgc.c')
-rw-r--r--do_valgc.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/do_valgc.c b/do_valgc.c
index c458c2f..5d2b45d 100644
--- a/do_valgc.c
+++ b/do_valgc.c
@@ -21,6 +21,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************************/
+/* $XFree86: xc/programs/x11perf/do_valgc.c,v 1.5 2001/01/17 23:45:12 dawes Exp $ */
#ifndef VMS
#include <X11/Xatom.h>
@@ -31,10 +32,8 @@ SOFTWARE.
static Window win[2];
-int InitGC(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+int
+InitGC(XParms xp, Parms p, int reps)
{
win[0] = XCreateSimpleWindow(
xp->d, xp->w, 10, 10, 10, 10, 1, xp->foreground, xp->background);
@@ -44,10 +43,8 @@ int InitGC(xp, p, reps)
return reps;
}
-void DoChangeGC(xp, p, reps)
- XParms xp;
- Parms p;
- int reps;
+void
+DoChangeGC(XParms xp, Parms p, int reps)
{
int i;
XGCValues gcv;
@@ -68,12 +65,12 @@ void DoChangeGC(xp, p, reps)
gcv.foreground = xp->foreground;
XChangeGC(xp->d, xp->fggc, GCForeground , &gcv);
XDrawPoint(xp->d, win[1], xp->fggc, 5, 5);
+ CheckAbort ();
}
}
-void EndGC(xp, p)
- XParms xp;
- Parms p;
+void
+EndGC(XParms xp, Parms p)
{
XDestroyWindow(xp->d, win[0]);
XDestroyWindow(xp->d, win[1]);