summaryrefslogtreecommitdiff
path: root/apps/examples/nxhello/nxhello_bkgd.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nxhello/nxhello_bkgd.c')
-rw-r--r--apps/examples/nxhello/nxhello_bkgd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/nxhello/nxhello_bkgd.c b/apps/examples/nxhello/nxhello_bkgd.c
index 3b609d1f6..09beac952 100644
--- a/apps/examples/nxhello/nxhello_bkgd.c
+++ b/apps/examples/nxhello/nxhello_bkgd.c
@@ -248,7 +248,7 @@ static void nxhello_center(FAR struct nxgl_point_s *pos,
*/
pos->x = (g_nxhello.xres - width) / 2;
- pos->y = (g_nxhello.yres - fbm->metric.height) / 2;
+ pos->y = (g_nxhello.yres - fontset->mxheight) / 2;
}
/****************************************************************************