From 6536ddcdcf1f06bae1f2456bdacbbc0fb38e0911 Mon Sep 17 00:00:00 2001 From: pengyiqiang Date: Thu, 13 Jul 2023 20:25:56 +0800 Subject: [PATCH] sim/framebuffer: remove duplicate poll notify The framebuffer of the emulator is a single buffer mode, and the pan_display method is not implemented, so as long as the fb device is created and poll notify once, the fb can be kept in a writable state. Signed-off-by: pengyiqiang --- arch/sim/src/sim/sim_framebuffer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/sim/src/sim/sim_framebuffer.c b/arch/sim/src/sim/sim_framebuffer.c index 6ed5234c096..459c1a0a518 100644 --- a/arch/sim/src/sim/sim_framebuffer.c +++ b/arch/sim/src/sim/sim_framebuffer.c @@ -424,12 +424,8 @@ void sim_x11loop(void) if (now - last >= MSEC2TICK(16)) { - if (sim_x11update() >= 0) - { - fb_pollnotify(&g_fbobject); - } - last = now; + sim_x11update(); } #endif }