summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-05 10:19:38 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-05 10:19:38 +0300
commitf6be0cba1b23a6ebf08b1414dc896d757451942c (patch)
treee3eb65edc09d3b2536edd865d3ab980bbd8f3e55
parentcb0786049f960f2bd383617151b01318e02e9ff9 (diff)
testpat: fix the location of second diagonal line
-rw-r--r--kms++util/src/testpat.cpp2
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
if (x == y || w - x == h - y)
return RGB(255, 255, 255);
// diagonal line
- else if (w - x == y || x == h - y)
+ else if (w - x - 1 == y || x == h - y - 1)
return RGB(255, 255, 255);
else {
int t = (x - xm1 - 1) * 8 / (xm2 - xm1 - 1);