9
0
Fork 0

Fix some NXTEXT bkgd redraw errors

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3764 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2011-07-10 13:22:13 +00:00
parent 4001089d69
commit bb220ee9a8
2 changed files with 6 additions and 2 deletions

View File

@ -202,6 +202,7 @@ static void nxbg_kbdin(NXWINDOW hwnd, uint8_t nch, FAR const uint8_t *ch,
static void nxbg_scroll(NXWINDOW hwnd, int lineheight)
{
struct nxgl_rect_s rect;
int i;
int j;
@ -256,6 +257,10 @@ static void nxbg_scroll(NXWINDOW hwnd, int lineheight)
/* Then re-draw the entire display */
rect.pt1.x = 0;
rect.pt1.y = 0;
rect.pt2.x = g_bgstate.wsize.w - 1;
rect.pt2.y = g_bgstate.wsize.h - 1;
nxbg_redrawrect(hwnd, NULL);
}
@ -366,7 +371,6 @@ void nxbg_redrawrect(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect)
* will actually be redrawn).
*/
nxtext_home(&g_bgstate);
for (i = 0; i < g_bgstate.nchars; i++)
{
nxtext_fillchar(hwnd, rect, &g_bgstate, &g_bgstate.bm[i]);

View File

@ -443,7 +443,7 @@ void nxtext_newline(FAR struct nxtext_state_s *st)
st->fpos.x = st->spwidth;
/* Linefeed: Done the max font height + 2 */
/* Linefeed: Down the max font height + 2 */
st->fpos.y += (st->fheight + 2);
}