aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen2017-06-05 02:19:38 -0500
committerTomi Valkeinen2017-06-05 02:19:38 -0500
commitf6be0cba1b23a6ebf08b1414dc896d757451942c (patch)
treee3eb65edc09d3b2536edd865d3ab980bbd8f3e55
parentcb0786049f960f2bd383617151b01318e02e9ff9 (diff)
downloadexternal-kmsxx-f6be0cba1b23a6ebf08b1414dc896d757451942c.tar.gz
external-kmsxx-f6be0cba1b23a6ebf08b1414dc896d757451942c.tar.xz
external-kmsxx-f6be0cba1b23a6ebf08b1414dc896d757451942c.zip
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
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);