Minor NxTerm-related clean-up

This commit is contained in:
Gregory Nutt
2019-03-08 08:43:16 -06:00
parent e025ced159
commit aefacb05ca
3 changed files with 4 additions and 4 deletions
+2 -1
View File
@@ -408,7 +408,8 @@ Configuration Directories
STATUS: 2019-03-08: Currently I am seeing a problem. The display looks
good until it begins scrolling when the display is full. Then there are
missing characters.
missing characters. This is probably related to clearing of the final
line of the display after the scroll(?)
nsh
---
-2
View File
@@ -210,8 +210,6 @@ void nxterm_scroll(FAR struct nxterm_state_s *priv, int scrollheight)
*/
priv->nchars--;
priv->bm[priv->nchars].code = ' ';
priv->bm[priv->nchars].flags = BMFLAGS_NOGLYPH;
}
/* No.. just decrement its vertical position (moving it "up" the
+2 -1
View File
@@ -542,7 +542,8 @@ nxf_renderglyph(FAR struct nxfonts_fcache_s *priv,
/* Allocate the glyph (always succeeds) */
bmsize = stride * height;
glyph = (FAR struct nxfonts_glyph_s *)lib_malloc(SIZEOF_NXFONTS_GLYPH_S(bmsize));
glyph = (FAR struct nxfonts_glyph_s *)
lib_malloc(SIZEOF_NXFONTS_GLYPH_S(bmsize));
if (glyph != NULL)
{