diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-10 12:45:21 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-18 13:22:05 +0300 |
commit | 2602a5d27444423595764556947218a8a23129ac (patch) | |
tree | 3614b356b3f565378218ba0e7731488a791e2d11 | |
parent | f4d1cf7dc6c369227fe2a1d50270f9dacbea18b5 (diff) |
testpat: white box in top left corner
-rw-r--r-- | kms++util/src/testpat.cpp | 3 |
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); |