diff options
| author | Albert Cervin <albert@acervin.com> | 2025-11-21 21:46:18 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2025-11-21 21:46:18 +0100 |
| commit | 3940a20f62baf567cf31e1206adba050b477c9fa (patch) | |
| tree | 4437c6b5ad20b264d3576717923d7f1f5a9c12f5 /src/main/main.c | |
| parent | fd5683cdc61efa37a1be7b94901f75c5409d2297 (diff) | |
| download | dged-3940a20f62baf567cf31e1206adba050b477c9fa.tar.gz dged-3940a20f62baf567cf31e1206adba050b477c9fa.tar.xz dged-3940a20f62baf567cf31e1206adba050b477c9fa.zip | |
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.
Diffstat (limited to 'src/main/main.c')
| -rw-r--r-- | src/main/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |
