kinpa / glcd-arduino

Automatically exported from code.google.com/p/glcd-arduino
0 stars 0 forks source link

slight bug in text scrolling/wrapping #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When less than the full character height of pixels is scrolled,
There can be an issue with the newly created empty line.
This is because only the # of pixels scrolled will be colored.
For example. If the area starts off as white and the text
color is also white, the newly created empty text line after a scroll 
operation will not be colored BLACK for the full height of the character if
the area is scrolled less than the height of the rendered character during
a wrap operation.
The only way to fix this would be alter the code use a "move pixels"
rather than a scroll pixels, and then do a clear to end line immediately
after the move and line wrap.

Currently this only shows up when
there are are less than 2xheight pixels below the current Y coordinate to
the bottom of the text area
and the current background of the pixels below the current text line
matches the text color
and  a wrap was just completed.

After a full row of text is printed, the issue will resolve itself.

Original issue reported on code.google.com by bperry...@gmail.com on 24 Mar 2011 at 6:27