summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-14 11:21:02 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-14 11:21:02 -0600
commit157799cd6ecdf571c268cdb80aff8ab988535852 (patch)
treebd1292212da5919bd66724750989fbfe5384da1e /NxWidgets/nxwm
parentdfaebc058783564a1c858345eb86fab1014d9934 (diff)
downloadnuttx-157799cd6ecdf571c268cdb80aff8ab988535852.tar.gz
nuttx-157799cd6ecdf571c268cdb80aff8ab988535852.tar.bz2
nuttx-157799cd6ecdf571c268cdb80aff8ab988535852.zip
NxWM: Toolbar font ID can now be separately configured
Diffstat (limited to 'NxWidgets/nxwm')
-rw-r--r--NxWidgets/nxwm/include/nxwmconfig.hxx6
-rw-r--r--NxWidgets/nxwm/src/capplicationwindow.cxx2
2 files changed, 7 insertions, 1 deletions
diff --git a/NxWidgets/nxwm/include/nxwmconfig.hxx b/NxWidgets/nxwm/include/nxwmconfig.hxx
index 453ab0421..d6202c066 100644
--- a/NxWidgets/nxwm/include/nxwmconfig.hxx
+++ b/NxWidgets/nxwm/include/nxwmconfig.hxx
@@ -276,6 +276,12 @@
(CONFIG_NXWM_TASKBAR_ICONHEIGHT + 2*CONFIG_NXWM_TASKBAR_HSPACING)
#endif
+/* CONFIG_NXWM_TOOLBAR_FONTID overrides the default NxWM font selection */
+
+#ifndef CONFIG_NXWM_TOOLBAR_FONTID
+# define CONFIG_NXWM_TOOLBAR_FONTID CONFIG_NXWM_DEFAULT_FONTID
+#endif
+
/* Background Image **********************************************************/
/**
* CONFIG_NXWM_BACKGROUND_IMAGE - The name of the image to use in the
diff --git a/NxWidgets/nxwm/src/capplicationwindow.cxx b/NxWidgets/nxwm/src/capplicationwindow.cxx
index 77d196d07..0c1bb1a96 100644
--- a/NxWidgets/nxwm/src/capplicationwindow.cxx
+++ b/NxWidgets/nxwm/src/capplicationwindow.cxx
@@ -307,7 +307,7 @@ bool CApplicationWindow::open(void)
// The rest of the toolbar will hold the left-justified application label
// Create the default font instance
- m_windowFont = new NXWidgets::CNxFont(CONFIG_NXWM_DEFAULT_FONTID,
+ m_windowFont = new NXWidgets::CNxFont((nx_fontid_e)CONFIG_NXWM_TOOLBAR_FONTID,
CONFIG_NXWM_DEFAULT_FONTCOLOR,
CONFIG_NXWM_TRANSPARENT_COLOR);
if (!m_windowFont)