mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 13:26:27 +00:00
test/framebuffer: add 15px marker at 0x0
This commit is contained in:
parent
db02e04d0c
commit
b48ae5550a
@ -107,6 +107,9 @@ struct Test::Capture_session : Rpc_object<Capture::Session>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user