summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/csliderhorizontal.cxx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-13 16:26:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-13 16:26:44 -0600
commit638c1a6dc07b438efa220c5345e94c3a963505ca (patch)
tree85feed8dbf4f2dd7a2eec83ed88606f14a2f02a2 /NxWidgets/libnxwidgets/src/csliderhorizontal.cxx
parent43ec94a665e13552402ff4f102e0f65f6792cf29 (diff)
downloadnuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.gz
nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.bz2
nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.zip
More trailing whilespace removal
Diffstat (limited to 'NxWidgets/libnxwidgets/src/csliderhorizontal.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/csliderhorizontal.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/NxWidgets/libnxwidgets/src/csliderhorizontal.cxx b/NxWidgets/libnxwidgets/src/csliderhorizontal.cxx
index 2fe47556c..4462d6e74 100644
--- a/NxWidgets/libnxwidgets/src/csliderhorizontal.cxx
+++ b/NxWidgets/libnxwidgets/src/csliderhorizontal.cxx
@@ -70,7 +70,7 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include <nuttx/config.h>
#include <stdint.h>
@@ -155,14 +155,14 @@ void CSliderHorizontal::setValueWithBitshift(const int32_t value)
{
CRect rect;
getClientRect(rect);
-
+
// Can the grip move?
if ((rect.getWidth() > m_grip->getWidth()) && (m_maximumValue != m_minimumValue))
{
int32_t newValue = value;
int32_t maxValue = getPhysicalMaximumValueWithBitshift();
-
+
// Limit to max/min values
if (newValue > maxValue)
@@ -174,13 +174,13 @@ void CSliderHorizontal::setValueWithBitshift(const int32_t value)
{
newValue = m_minimumValue << 16;
}
-
+
uint32_t scrollRatio = newValue / m_contentSize;
int32_t newGripX = m_gutterWidth * scrollRatio;
newGripX += newGripX & 0x8000;
newGripX >>= 16;
newGripX += rect.getX();
-
+
m_grip->moveTo(newGripX, rect.getY());
// Update stored value if necessary
@@ -395,7 +395,7 @@ void CSliderHorizontal::resizeGrip(void)
// height) of the gutter. Each position in the gutter needs to be
// reduced in value.
}
-
+
m_grip->resize(gripSize, rect.getHeight());
}