diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-17 15:07:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-17 15:07:07 -0600 |
commit | c2468c3288753a778a9c12ff6f49e096d138f744 (patch) | |
tree | 2551cfa859b8a7d598bcb29a5a0702845715f3a7 /NxWidgets/libnxwidgets | |
parent | d2a0336f4f3858524faf7900f27b7c1ef07e5cab (diff) | |
download | px4-nuttx-c2468c3288753a778a9c12ff6f49e096d138f744.tar.gz px4-nuttx-c2468c3288753a778a9c12ff6f49e096d138f744.tar.bz2 px4-nuttx-c2468c3288753a778a9c12ff6f49e096d138f744.zip |
Add NxWidgets::CGlyphSliderHorizontal unit test; Fix NxWidgets::CGlyphSliderHorizontal drawing error. From Ken Pettit
Diffstat (limited to 'NxWidgets/libnxwidgets')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx b/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx index 97d8d01ad..93984e1bc 100644 --- a/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx +++ b/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx @@ -331,7 +331,7 @@ void CGlyphSliderHorizontal::drawContents(CGraphicsPort * port) if (m_grip->getX() > halfGripWidth) port->drawFilledRect(getX() + 1 + halfGripWidth, getY() + halfHeight - halfBar + 1, - m_grip->getX() - halfGripWidth, m_barThickness - 2, + m_grip->getX() - getX() - halfGripWidth, m_barThickness - 2, color); // Fill in bar the area to the right of the grip |