Update of /cvsroot/win32forth/win32forth-extsrc/extsrc/w32fConsole
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28724
Modified Files:
Term.cpp
Log Message:
Removed Rod's change "an extra character has to be output in Paint() to redraw part of character under the scrollbar." because it output's rubish at the end of a line (the first char of the next line was printed).
Index: Term.cpp
===================================================================
RCS file: /cvsroot/win32forth/win32forth-extsrc/extsrc/w32fConsole/Term.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Term.cpp 21 May 2006 11:05:21 -0000 1.8
--- Term.cpp 27 May 2006 08:29:35 -0000 1.9
***************
*** 490,494 ****
// don't let us type under the scrollbar
! width -= ( GetSystemMetrics( SM_CXHSCROLL ) + 1 );
int newrows = min( max (height / charH, 1), maxrows );
--- 490,494 ----
// don't let us type under the scrollbar
! width -= GetSystemMetrics( SM_CXHSCROLL );
int newrows = min( max (height / charH, 1), maxrows );
***************
*** 788,792 ****
{
if (((i + rowoff) < hlstlin) || ((i + rowoff) > hledlin))
! TextOut (hdc, 1, i * charH, screen + ((i + rowoff) * maxcols), cols + 1);
else
{
--- 788,792 ----
{
if (((i + rowoff) < hlstlin) || ((i + rowoff) > hledlin))
! TextOut (hdc, 1, i * charH, screen + ((i + rowoff) * maxcols), cols);
else
{
***************
*** 805,814 ****
SetTextColor(hdc, theFg);
TextOut (hdc, 1+(charW*hledcol), i * charH, screen +
! ((i + rowoff) * maxcols) + hledcol, cols-hledcol + 1);
}
else // else put out remainder of starting line reversed
{
TextOut (hdc, 1+(charW*hlstcol), i * charH, screen +
! ((i + rowoff) * maxcols)+ hlstcol, cols-hlstcol + 1);
SetBkColor(hdc, theBg);
SetTextColor(hdc, theFg);
--- 805,814 ----
SetTextColor(hdc, theFg);
TextOut (hdc, 1+(charW*hledcol), i * charH, screen +
! ((i + rowoff) * maxcols) + hledcol, cols-hledcol);
}
else // else put out remainder of starting line reversed
{
TextOut (hdc, 1+(charW*hlstcol), i * charH, screen +
! ((i + rowoff) * maxcols)+ hlstcol, cols-hlstcol);
SetBkColor(hdc, theBg);
SetTextColor(hdc, theFg);
***************
*** 826,830 ****
SetTextColor(hdc, theFg);
TextOut (hdc, 1+(charW*hledcol), i * charH, screen +
! ((i + rowoff) * maxcols) + hledcol, cols-hledcol + 1);
}
else // if not ending line either
--- 826,830 ----
SetTextColor(hdc, theFg);
TextOut (hdc, 1+(charW*hledcol), i * charH, screen +
! ((i + rowoff) * maxcols) + hledcol, cols-hledcol);
}
else // if not ending line either
***************
*** 833,837 ****
SetTextColor(hdc, theBg);
TextOut (hdc, 1, i * charH, screen +
! ((i + rowoff) * maxcols), cols + 1);
SetBkColor(hdc, theBg);
SetTextColor(hdc, theFg);
--- 833,837 ----
SetTextColor(hdc, theBg);
TextOut (hdc, 1, i * charH, screen +
! ((i + rowoff) * maxcols), cols);
SetBkColor(hdc, theBg);
SetTextColor(hdc, theFg);
|