From b48ae5550af15426e541b7129d26c33d07f9b2fd Mon Sep 17 00:00:00 2001 From: Sebastian Sumpf Date: Wed, 16 Oct 2024 10:03:00 +0200 Subject: [PATCH] test/framebuffer: add 15px marker at 0x0 --- repos/os/src/test/framebuffer/main.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/repos/os/src/test/framebuffer/main.cc b/repos/os/src/test/framebuffer/main.cc index 55ef20cfca..9539906ecb 100644 --- a/repos/os/src/test/framebuffer/main.cc +++ b/repos/os/src/test/framebuffer/main.cc @@ -107,6 +107,9 @@ struct Test::Capture_session : Rpc_object catch (Out_of_caps) { return Buffer_result::OUT_OF_CAPS; } _size = attr.px; + + log("screen dimension: ", _size); + _draw(); return Buffer_result::OK; } @@ -161,6 +164,11 @@ void Test::Capture_session::_draw_frame(Pixel *p, Pixel c, Area area) /* left and right */ for (unsigned i = 0; i < h; ++i) p[i*w] = p[i*w + w - 1] = c; + + /* 15px marker for (0,0) */ + for (unsigned i = 0; i < 15; i++) + for (unsigned j = 0; j < 15; j++) + p[i*w + j] = c; }