From 4cae179ff8c8198dfc7aa2fd98400bc03c940d15 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sun, 19 Dec 2004 23:37:30 +0000 Subject: [PATCH] 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] --- windows/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); /*