mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
Handle WM_SYSCOLORCHANGE if using system colours. (Resets the whole palette,
whereas ideally it would restrict itself to the affected colour slots.) [originally from svn r4505]
This commit is contained in:
parent
0484dbe54a
commit
1393528a3a
10
window.c
10
window.c
@ -2767,6 +2767,16 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case WM_AGENT_CALLBACK:
|
||||||
{
|
{
|
||||||
struct agent_callback *c = (struct agent_callback *)lParam;
|
struct agent_callback *c = (struct agent_callback *)lParam;
|
||||||
|
Loading…
Reference in New Issue
Block a user