mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
test/fb_bench: make fb mode consistent with ds
Otherwise, the fb mode may refer to a new mode when the framebuffer is resized between the call of 'dataspace' and 'mode'.
This commit is contained in:
parent
b1d5a5f7b8
commit
4dd5c6ff8a
@ -31,8 +31,8 @@ struct Test
|
||||
Timer::Connection timer { env };
|
||||
Heap heap { env.ram(), env.rm() };
|
||||
Framebuffer::Connection fb { env, Framebuffer::Mode { } };
|
||||
Attached_dataspace fb_ds { env.rm(), fb.dataspace() };
|
||||
Framebuffer::Mode const fb_mode { fb.mode() };
|
||||
Attached_dataspace fb_ds { env.rm(), fb.dataspace() };
|
||||
char *buf[2];
|
||||
|
||||
Test(Env &env, int id, char const *brief) : env(env), id(id)
|
||||
|
Loading…
Reference in New Issue
Block a user