summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/cscrollingpanel.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/cscrollingpanel.cxx
parent43ec94a665e13552402ff4f102e0f65f6792cf29 (diff)
downloadnuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.gz
nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.tar.bz2
nuttx-638c1a6dc07b438efa220c5345e94c3a963505ca.zip
More trailing whilespace removal
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cscrollingpanel.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/cscrollingpanel.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/NxWidgets/libnxwidgets/src/cscrollingpanel.cxx b/NxWidgets/libnxwidgets/src/cscrollingpanel.cxx
index 2541bb572..c93d113a6 100644
--- a/NxWidgets/libnxwidgets/src/cscrollingpanel.cxx
+++ b/NxWidgets/libnxwidgets/src/cscrollingpanel.cxx
@@ -216,9 +216,9 @@ void CScrollingPanel::scroll(int32_t dx, int32_t dy)
m_canvasX += dx;
// Move children but do not redraw.
-
+
scrollChildren(dx, dy, false);
-
+
if (revealedRects.size() > 0)
{
// Draw background to revealed sections
@@ -234,7 +234,7 @@ void CScrollingPanel::scroll(int32_t dx, int32_t dy)
port->drawFilledRect(rrect.getX(), rrect.getY(),
rrect.getWidth(), rrect.getHeight(),
getBackgroundColor());
-
+
// Check if any children intersect this region.
// If it does, it should be redrawn.
@@ -255,7 +255,7 @@ void CScrollingPanel::scroll(int32_t dx, int32_t dy)
m_canvasY += dy;
m_canvasX += dx;
-
+
// Scroll all child widgets and redraw them
scrollChildren(dx, dy, true);
@@ -362,16 +362,16 @@ void CScrollingPanel::scrollChildren(int32_t dx, int32_t dy, bool do_redraw)
{
widget = m_children[i];
bool oldstate = widget->isDrawingEnabled();
-
+
if (!do_redraw)
{
widget->disableDrawing();
}
-
+
widgetX = (widget->getX() - thisX) + dx;
widgetY = (widget->getY() - thisY) + dy;
widget->moveTo(widgetX, widgetY);
-
+
if (!do_redraw && oldstate)
{
widget->enableDrawing();