mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
Minor NxTerm-related clean-up
This commit is contained in:
@@ -408,7 +408,8 @@ Configuration Directories
|
|||||||
|
|
||||||
STATUS: 2019-03-08: Currently I am seeing a problem. The display looks
|
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
|
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
|
nsh
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -210,8 +210,6 @@ void nxterm_scroll(FAR struct nxterm_state_s *priv, int scrollheight)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
priv->nchars--;
|
priv->nchars--;
|
||||||
priv->bm[priv->nchars].code = ' ';
|
|
||||||
priv->bm[priv->nchars].flags = BMFLAGS_NOGLYPH;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* No.. just decrement its vertical position (moving it "up" the
|
/* No.. just decrement its vertical position (moving it "up" the
|
||||||
|
|||||||
@@ -542,7 +542,8 @@ nxf_renderglyph(FAR struct nxfonts_fcache_s *priv,
|
|||||||
/* Allocate the glyph (always succeeds) */
|
/* Allocate the glyph (always succeeds) */
|
||||||
|
|
||||||
bmsize = stride * height;
|
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)
|
if (glyph != NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user