mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
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. [originally from svn r1963]
This commit is contained in:
parent
30e159d112
commit
58238b10d3
11
window.c
11
window.c
@ -2061,6 +2061,17 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]);
|
colours[(ATTR_DEFBG>>ATTR_BGSHIFT)*2]);
|
||||||
oldpen = SelectObject(hdc, edge);
|
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,
|
ExcludeClipRect(hdc,
|
||||||
offset_width, offset_height,
|
offset_width, offset_height,
|
||||||
offset_width+font_width*cols,
|
offset_width+font_width*cols,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user