From: Jacob Nevins Date: Sun, 19 Dec 2004 23:37:30 +0000 (+0000) Subject: Restore border around terminal to default background colour rather than X-Git-Tag: r8855-g4f798d~925 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=2998ade4d011bfc8fea2727679823b8b3590a7a9;p=PuTTY_svn.git 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.) git-svn-id: http://svn.tartarus.org/sgt/putty@5014 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/window.c b/windows/window.c index 3d40cedc..b0d7d5c2 100644 --- a/windows/window.c +++ b/windows/window.c @@ -2295,10 +2295,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, HBRUSH fillcolour, oldbrush; HPEN edge, oldpen; fillcolour = CreateSolidBrush ( - colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]); + colours[ATTR_DEFBG>>ATTR_BGSHIFT]); oldbrush = SelectObject(hdc, fillcolour); edge = CreatePen(PS_SOLID, 0, - colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]); + colours[ATTR_DEFBG>>ATTR_BGSHIFT]); oldpen = SelectObject(hdc, edge); /*