summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);