diff options
author | Tomi Valkeinen | 2017-06-05 02:19:38 -0500 |
---|---|---|
committer | Tomi Valkeinen | 2017-06-05 02:19:38 -0500 |
commit | f6be0cba1b23a6ebf08b1414dc896d757451942c (patch) | |
tree | e3eb65edc09d3b2536edd865d3ab980bbd8f3e55 /kms++util | |
parent | cb0786049f960f2bd383617151b01318e02e9ff9 (diff) | |
download | external-libkmsxx-f6be0cba1b23a6ebf08b1414dc896d757451942c.tar.gz external-libkmsxx-f6be0cba1b23a6ebf08b1414dc896d757451942c.tar.xz external-libkmsxx-f6be0cba1b23a6ebf08b1414dc896d757451942c.zip |
testpat: fix the location of second diagonal line
Diffstat (limited to 'kms++util')
-rw-r--r-- | kms++util/src/testpat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp index dbd8fe6..faacda3 100644 --- a/kms++util/src/testpat.cpp +++ b/kms++util/src/testpat.cpp | |||
@@ -55,7 +55,7 @@ static RGB get_test_pattern_pixel(IMappedFramebuffer& fb, unsigned x, unsigned y | |||
55 | if (x == y || w - x == h - y) | 55 | if (x == y || w - x == h - y) |
56 | return RGB(255, 255, 255); | 56 | return RGB(255, 255, 255); |
57 | // diagonal line | 57 | // diagonal line |
58 | else if (w - x == y || x == h - y) | 58 | else if (w - x - 1 == y || x == h - y - 1) |
59 | return RGB(255, 255, 255); | 59 | return RGB(255, 255, 255); |
60 | else { | 60 | else { |
61 | int t = (x - xm1 - 1) * 8 / (xm2 - xm1 - 1); | 61 | int t = (x - xm1 - 1) * 8 / (xm2 - xm1 - 1); |