mirror of https://github.com/macssh/macssh.git
attempt to fix colors bug
This commit is contained in:
parent
30fce48605
commit
70d20c3023
|
@ -367,7 +367,6 @@ void RSsetattr(short a)
|
||||||
|
|
||||||
} /* RSsetattr */
|
} /* RSsetattr */
|
||||||
|
|
||||||
|
|
||||||
void RSTextFont(short myfnum, short myfsiz, short myface) /* BYU */
|
void RSTextFont(short myfnum, short myfsiz, short myface) /* BYU */
|
||||||
{ /* BYU */
|
{ /* BYU */
|
||||||
short tempFontID; // RAB BetterTelnet 1.0fc4
|
short tempFontID; // RAB BetterTelnet 1.0fc4
|
||||||
|
@ -537,9 +536,6 @@ void RSdraw
|
||||||
if (x <= 0) /* BYU 2.4.12 - Without this, 1 pixel column of reverse */
|
if (x <= 0) /* BYU 2.4.12 - Without this, 1 pixel column of reverse */
|
||||||
rect.left = -3; /* BYU 2.4.12 - video text does not clear at left margin */
|
rect.left = -3; /* BYU 2.4.12 - video text does not clear at left margin */
|
||||||
|
|
||||||
if (rect.bottom == RScurrent->rheight)
|
|
||||||
rect.bottom += 1; //CCP take care of updating problems while scrolling
|
|
||||||
|
|
||||||
/* NONO */
|
/* NONO */
|
||||||
oldClip = NewRgn();
|
oldClip = NewRgn();
|
||||||
if (oldClip) {
|
if (oldClip) {
|
||||||
|
@ -547,14 +543,17 @@ void RSdraw
|
||||||
ClipRect(&rect);
|
ClipRect(&rect);
|
||||||
}
|
}
|
||||||
/* NONO */
|
/* NONO */
|
||||||
|
/*
|
||||||
|
if (rect.bottom == RScurrent->rheight)
|
||||||
|
rect.bottom += 1; //CCP take care of updating problems while scrolling
|
||||||
|
*/
|
||||||
EraseRect(&rect);
|
EraseRect(&rect);
|
||||||
|
|
||||||
if (x <= 0) /* BYU 2.4.12 - Okay, just putting it back the way it was */
|
if (x <= 0) /* BYU 2.4.12 - Okay, just putting it back the way it was */
|
||||||
rect.left = 0; /* BYU 2.4.12 */
|
rect.left = 0; /* BYU 2.4.12 */
|
||||||
|
|
||||||
MoveTo(x * RScurrent->fwidth, ys + RScurrent->fascent);
|
MoveTo(x * RScurrent->fwidth, ys + RScurrent->fascent);
|
||||||
|
|
||||||
DrawText(ptr, 0, len);
|
DrawText(ptr, 0, len);
|
||||||
|
|
||||||
if (RScurrent->selected)
|
if (RScurrent->selected)
|
||||||
|
@ -652,6 +651,9 @@ void RSdelchars
|
||||||
HUnlock((Handle) RSuRgn);
|
HUnlock((Handle) RSuRgn);
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
/* NONO */
|
||||||
|
RSsetattr(VSIw->attrib); /* restore mode for text drawing */
|
||||||
|
/* NONO */
|
||||||
} /* RSdelchars */
|
} /* RSdelchars */
|
||||||
|
|
||||||
void RSdellines
|
void RSdellines
|
||||||
|
@ -757,6 +759,9 @@ void RSerase
|
||||||
if (RScurrent->selected)
|
if (RScurrent->selected)
|
||||||
/* highlight any part of the selection within the cleared area */
|
/* highlight any part of the selection within the cleared area */
|
||||||
RSinvText(w, *(Point *) &RScurrent->anchor, *(Point *) &RScurrent->last, &rect);
|
RSinvText(w, *(Point *) &RScurrent->anchor, *(Point *) &RScurrent->last, &rect);
|
||||||
|
/* NONO */
|
||||||
|
RSsetattr(VSIw->attrib); /* restore mode for text drawing */
|
||||||
|
/* NONO */
|
||||||
} /* RSerase */
|
} /* RSerase */
|
||||||
|
|
||||||
void RSinslines
|
void RSinslines
|
||||||
|
@ -798,6 +803,9 @@ void RSinslines
|
||||||
SetRect(&rect, 0, t * RScurrent->fheight - 1,
|
SetRect(&rect, 0, t * RScurrent->fheight - 1,
|
||||||
RScurrent->width, (t + n) * RScurrent->fheight + 1);
|
RScurrent->width, (t + n) * RScurrent->fheight + 1);
|
||||||
ValidRect(&rect);
|
ValidRect(&rect);
|
||||||
|
/* NONO */
|
||||||
|
RSsetattr(VSIw->attrib); /* restore mode for text drawing */
|
||||||
|
/* NONO */
|
||||||
} /* RSinslines */
|
} /* RSinslines */
|
||||||
|
|
||||||
void RSinscols
|
void RSinscols
|
||||||
|
|
Loading…
Reference in New Issue