summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-15 14:29:06 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-15 14:29:06 -0600
commit7ef1ad19448670543bece35c3a6119e6a440c778 (patch)
tree79292d132ebcbe2141042217e3bad7342e22e162 /NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx
parent24ee5014675d43c80c0580882fe5cc24ca17e7a8 (diff)
downloadnuttx-7ef1ad19448670543bece35c3a6119e6a440c778.tar.gz
nuttx-7ef1ad19448670543bece35c3a6119e6a440c778.tar.bz2
nuttx-7ef1ad19448670543bece35c3a6119e6a440c778.zip
Use NxWidgets::CScaledBitmap to scale icons in the NxWM taskbar
Diffstat (limited to 'NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx b/NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx
index 241736add..1fb2518a5 100644
--- a/NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx
+++ b/NxWidgets/libnxwidgets/src/crlepalettebitmap.cxx
@@ -192,7 +192,7 @@ bool CRlePaletteBitmap::getRun(nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t widt
{
// Check ranges. Casts to unsigned int are ugly but permit one-sided comparisons
- if (((unsigned int)x < (unsigned int)width) &&
+ if (((unsigned int)x < (unsigned int)m_bitmap->width) &&
((unsigned int)(x + width) <= (unsigned int)m_bitmap->width))
{
// Seek to the requested row