From 12d256c7c86b6225a365543051691b666a1e41f3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 8 Aug 2021 08:41:08 +1000 Subject: [PATCH] [client] egl: do a full redraw if nightvision is toggled --- client/renderers/EGL/desktop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index d3cdb7be..c5db389c 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -159,6 +159,8 @@ void egl_desktop_toggle_nv(int key, void * opaque) if (desktop->nvGain == 0) app_alert(LG_ALERT_INFO, "NV Disabled"); else if (desktop->nvGain == 1) app_alert(LG_ALERT_INFO, "NV Enabled"); else app_alert(LG_ALERT_INFO, "NV Gain + %d", desktop->nvGain - 1); + + app_invalidateWindow(true); } bool egl_desktop_scale_validate(struct Option * opt, const char ** error)