From 3940a20f62baf567cf31e1206adba050b477c9fa Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Fri, 21 Nov 2025 21:46:18 +0100 Subject: Fix the yellow on yellow for warnings Diagnostic highlight now sets the fg to white and the background to the appropriate color for the diagnostic severity. Before, we could end up with a yellow color for warning as background and a yellow as foreground for a function, which caused unreadable text. Also fix some more cases where re-render is needed. --- src/main/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/main.c') diff --git a/src/main/main.c b/src/main/main.c index 57c2454..a10a461 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -431,7 +431,8 @@ int main(int argc, char *argv[]) { * reason. This is also the reason that there is no timed scope around * this, it simply makes no sense. */ - reactor_update(reactor, needs_render ? (time_to_render_ns / 1e6) : -1); + reactor_update(reactor, + needs_render ? ((time_to_render_ns + 1e6 - 1) / 1e6) : -1); } struct timer *update_keyboard = timer_start("update-keyboard"); -- cgit v1.2.3