From 2602a5d27444423595764556947218a8a23129ac Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 10 May 2017 12:45:21 +0300 Subject: testpat: white box in top left corner --- kms++util/src/testpat.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3