diff options
author | Keith Packard <keithp@keithp.com> | 2016-10-03 15:12:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-04-13 15:27:59 -0700 |
commit | c0ba2f7af7270f2e6edf1bc2386c97ed3f0783cb (patch) | |
tree | 8d52be58104bfba19a91d5f04385141c7438a099 /do_blt.c | |
parent | bd6b8109b34e2effbe071b7881aebb8a7cfac53d (diff) |
Don't try to make XOR 'look good'. Best to make it visible.
Attempts to pick 'good' pixel values to make XOR rendering look decent
instead make it invisible on modern TrueColor visuals. Just use the
defined fg/bg pixel values, which at least make it appear.
Adapt to this change by drawing the lines for the blt tests in copy
mode so they appear on the screen.
Signed-off-by: Keith Packard <keithp@keithp.com>
Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
Diffstat (limited to 'do_blt.c')
-rw-r--r-- | do_blt.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |