mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-23 15:09:24 -05:00
Restore border around terminal to default background colour rather than
something outside colours[] (consistently brown on my system). (I don't understand why this code was the way it was, but it gave the correct result before r4917 `256-colours', and now doesn't.) [originally from svn r5014] [r4917 == e4e10e494b3ee80e68c84882628d84c2791b1344]
This commit is contained in:
parent
2a69c4e0fa
commit
4cae179ff8
@ -2295,10 +2295,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
HBRUSH fillcolour, oldbrush;
|
HBRUSH fillcolour, oldbrush;
|
||||||
HPEN edge, oldpen;
|
HPEN edge, oldpen;
|
||||||
fillcolour = CreateSolidBrush (
|
fillcolour = CreateSolidBrush (
|
||||||
colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]);
|
colours[ATTR_DEFBG>>ATTR_BGSHIFT]);
|
||||||
oldbrush = SelectObject(hdc, fillcolour);
|
oldbrush = SelectObject(hdc, fillcolour);
|
||||||
edge = CreatePen(PS_SOLID, 0,
|
edge = CreatePen(PS_SOLID, 0,
|
||||||
colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]);
|
colours[ATTR_DEFBG>>ATTR_BGSHIFT]);
|
||||||
oldpen = SelectObject(hdc, edge);
|
oldpen = SelectObject(hdc, edge);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user