diff options
author | Eric Anholt <eric@anholt.net> | 2007-02-02 15:55:07 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-02-02 15:55:07 -0800 |
commit | 160d69f593f4054d1973b27a24bf24323774c346 (patch) | |
tree | a00ee31b1ee587c6d950dbebf445681981156ec9 /tests.c | |
parent | 2ae83b5c2783dbce9523ce030a50596eb6804c2b (diff) |
Unbreak the dstcoords test, and test it with PictOpOver, as well.
Testing on dests[0] meant an a8 picture, which doesn't capture color very well.
Use the window, instead. Also, make the code match the comment about it being
a 3x3 picture (previously, we drew 1x1).
Diffstat (limited to 'tests.c')
-rw-r--r-- | tests.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -436,9 +436,12 @@ do { \ Bool ok, group_ok = TRUE; printf("Beginning dest coords test\n"); - ok = dstcoords_test(dpy, win, &dests[0], argb32white, - argb32red); - RECORD_RESULTS(); + for (i = 0; i < 2; i++) { + ok = dstcoords_test(dpy, win, + i == 0 ? PictOpSrc : PictOpOver, win, + argb32white, argb32red); + RECORD_RESULTS(); + } if (group_ok) success_mask |= TEST_DSTCOORDS; } |