summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--do_blt.c2
-rw-r--r--x11perf.c25
2 files changed, 10 insertions, 17 deletions
diff --git a/do_blt.c b/do_blt.c
index ba0c7c7..95ad602 100644
--- a/do_blt.c
+++ b/do_blt.c
@@ -66,7 +66,9 @@ int
InitScroll(XParms xp, Parms p, int64_t reps)
{
InitBltLines();
+ XSetFunction(xp->d, xp->fggc, GXcopy);
XDrawLines(xp->d, xp->w, xp->fggc, points, NUMPOINTS, CoordModeOrigin);
+ XSetFunction(xp->d, xp->fggc, xp->func);
return reps;
}
diff --git a/x11perf.c b/x11perf.c
index a77316d..3939f02 100644
--- a/x11perf.c
+++ b/x11perf.c
@@ -739,23 +739,14 @@ CreatePerfGCs(XParms xp, int func, unsigned long pm)
gcvddfg.function = func;
gcvddbg.function = func;
- if (func == GXxor) {
- /* Make test look good visually if possible */
- gcvbg.foreground = gcvfg.foreground = bg ^ fg;
- gcvbg.background = gcvfg.background = bg;
- /* Double Dash GCs (This doesn't make a huge amount of sense) */
- gcvddbg.foreground = gcvddfg.foreground = bg ^ fg;
- gcvddbg.background = gcvddfg.foreground = bg ^ ddbg;
- } else {
- gcvfg.foreground = fg;
- gcvfg.background = bg;
- gcvbg.foreground = bg;
- gcvbg.background = fg;
- gcvddfg.foreground = fg;
- gcvddfg.background = ddbg;
- gcvddbg.foreground = ddbg;
- gcvddbg.background = fg;
- }
+ gcvfg.foreground = fg;
+ gcvfg.background = bg;
+ gcvbg.foreground = bg;
+ gcvbg.background = fg;
+ gcvddfg.foreground = fg;
+ gcvddfg.background = ddbg;
+ gcvddbg.foreground = ddbg;
+ gcvddbg.background = fg;
xp->fggc = XCreateGC(xp->d, xp->w,
GCForeground | GCBackground | GCGraphicsExposures
| GCFunction | GCPlaneMask, &gcvfg);