From bfa7a5dba2c16d6f69772cc8db2e112670e1df5d Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 15 Sep 2002 22:18:02 +0000 Subject: [PATCH] Jordan Russell's mysterious workaround for an almost equally mysterious Windows GDI bug. Looks unlikely to cause any other trouble and it's pretty small, so it can go in. git-svn-id: svn://svn.tartarus.org/sgt/putty@1963 cda61777-01e9-0310-a592-d414129be87e --- window.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/window.c b/window.c index 42c42b5b..9ea6c018 100644 --- a/window.c +++ b/window.c @@ -2061,6 +2061,17 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]); oldpen = SelectObject(hdc, edge); + /* + * Jordan Russell reports that this apparently + * ineffectual IntersectClipRect() call masks a + * Windows NT/2K bug causing strange display + * problems when the PuTTY window is taller than + * the primary monitor. It seems harmless enough... + */ + IntersectClipRect(hdc, + p.rcPaint.left, p.rcPaint.top, + p.rcPaint.right, p.rcPaint.bottom); + ExcludeClipRect(hdc, offset_width, offset_height, offset_width+font_width*cols, -- 2.11.0