X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5789bc942237a0cb3e35df33cbb37b2f8c5a704b..f33ba69e92f389f5884eae5a586858a629a5260b:/window.c diff --git a/window.c b/window.c index d4ebcf58..ef19552a 100644 --- a/window.c +++ b/window.c @@ -2767,6 +2767,16 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, return TRUE; } break; + case WM_SYSCOLORCHANGE: + if (cfg.system_colour) { + /* Refresh palette from system colours. */ + /* XXX actually this zaps the entire palette. */ + systopalette(); + init_palette(); + /* Force a repaint of the terminal window. */ + term_invalidate(term); + } + break; case WM_AGENT_CALLBACK: { struct agent_callback *c = (struct agent_callback *)lParam;