diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-13 16:26:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-13 16:26:44 -0600 |
commit | 638c1a6dc07b438efa220c5345e94c3a963505ca (patch) | |
tree | 85feed8dbf4f2dd7a2eec83ed88606f14a2f02a2 /NxWidgets/libnxwidgets/src/cprogressbar.cxx | |
parent | 43ec94a665e13552402ff4f102e0f65f6792cf29 (diff) | |
download | nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.gz nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.bz2 nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.zip |
More trailing whilespace removal
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cprogressbar.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cprogressbar.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/NxWidgets/libnxwidgets/src/cprogressbar.cxx b/NxWidgets/libnxwidgets/src/cprogressbar.cxx index 5f29a3f7e..d76d42903 100644 --- a/NxWidgets/libnxwidgets/src/cprogressbar.cxx +++ b/NxWidgets/libnxwidgets/src/cprogressbar.cxx @@ -70,7 +70,7 @@ /**************************************************************************** * Included Files ****************************************************************************/ - + #include <nuttx/config.h> #include <sys/types.h> @@ -117,7 +117,7 @@ CProgressBar::CProgressBar(CWidgetControl *pWidgetControl, } /** - * Set the value that of the progress bar. + * Set the value that of the progress bar. * * @param value The new value. */ @@ -159,7 +159,7 @@ void CProgressBar::drawContents(CGraphicsPort *port) // Calculate ratio of pixels to value range (max fractional value of 255) uint32_t ratio = ((uint32_t)rect.getWidth() << 8) / (uint32_t)(m_maximumValue - m_minimumValue); - + // Convert value using ratio, rounding up and shifting down int16_t barWidth = ((m_value * ratio) + 128) >> 8; @@ -167,7 +167,7 @@ void CProgressBar::drawContents(CGraphicsPort *port) // Draw filled region port->drawFilledRect(rect.getX(), rect.getY(), barWidth, rect.getHeight(), getHighlightColor()); - + // Draw unfilled background if (barWidth < rect.getWidth()) |