aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'kms++util/src/testpat.cpp')
-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);