Follow the recommendations in Tech Note TB575 for clipping off the space

for the horizontal scroll bar when drawing the grow box.

[originally from svn r2262]
This commit is contained in:
Ben Harris 2002-11-28 21:02:07 +00:00
Родитель 81b29767a4
Коммит 4b3ed26016
1 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -1,4 +1,4 @@
/* $Id: macterm.c,v 1.13 2002/11/28 00:25:09 ben Exp $ */ /* $Id: macterm.c,v 1.14 2002/11/28 21:02:07 ben Exp $ */
/* /*
* Copyright (c) 1999 Simon Tatham * Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris * Copyright (c) 1999, 2002 Ben Harris
@ -779,15 +779,21 @@ void mac_updateterm(WindowPtr window) {
static void mac_drawgrowicon(Session *s) { static void mac_drawgrowicon(Session *s) {
Rect clip; Rect clip;
RgnHandle savergn;
SetPort(s->window); SetPort(s->window);
/* Stop DrawGrowIcon giving us space for a horizontal scrollbar */ /*
SetRect(&clip, s->window->portRect.right - 15, SHRT_MIN, * Stop DrawGrowIcon giving us space for a horizontal scrollbar
SHRT_MAX, SHRT_MAX); * See Tech Note TB575 for details.
*/
clip = s->window->portRect;
clip.left = clip.right - 15;
savergn = NewRgn();
GetClip(savergn);
ClipRect(&clip); ClipRect(&clip);
DrawGrowIcon(s->window); DrawGrowIcon(s->window);
clip.left = SHRT_MIN; SetClip(savergn);
ClipRect(&clip); DisposeRgn(savergn);
} }
struct do_text_args { struct do_text_args {