summaryrefslogtreecommitdiff
path: root/kms++util/src
diff options
context:
space:
mode:
Diffstat (limited to 'kms++util/src')
-rw-r--r--kms++util/src/testpat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kms++util/src/testpat.cpp b/kms++util/src/testpat.cpp
index 6cb5d85..fbe3b2e 100644
--- a/kms++util/src/testpat.cpp
+++ b/kms++util/src/testpat.cpp
@@ -28,6 +28,9 @@ static RGB get_test_pattern_pixel(IMappedFramebuffer& fb, unsigned x, unsigned y
// white margin lines
if (x == xm1 || x == xm2 || y == ym1 || y == ym2)
return RGB(255, 255, 255);
+ // white box in top left corner
+ else if (x < xm1 && y < ym1)
+ return RGB(255, 255, 255);
// white box outlines to corners
else if ((x == 0 || x == w - 1) && (y < ym1 || y > ym2))
return RGB(255, 255, 255);