From 4dd5c6ff8aaf3b86e4e202cc5ed553bc7cd45985 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 4 Oct 2024 11:29:50 +0200 Subject: [PATCH] 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'. --- repos/os/src/test/fb_bench/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/src/test/fb_bench/main.cc b/repos/os/src/test/fb_bench/main.cc index dc052f4207..85eea4e704 100644 --- a/repos/os/src/test/fb_bench/main.cc +++ b/repos/os/src/test/fb_bench/main.cc @@ -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)