diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-15 18:37:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-15 18:37:00 +0300 |
commit | 65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635 (patch) | |
tree | 493d6441dd152419908d28178c26112a4639e89f /src/gui/widgets | |
parent | e1e411459e9c9aae819eee474d48d0cc20f6ca07 (diff) | |
download | plus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.gz plus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.bz2 plus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.tar.xz plus-65f11a2d85f26932b0e2f0679ddbfc6b6fc4b635.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/scrollarea.cpp | 1 | ||||
-rw-r--r-- | src/gui/widgets/slider.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/slider.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/scrollarea.cpp b/src/gui/widgets/scrollarea.cpp index 4cc4cad41..3635e5f4f 100644 --- a/src/gui/widgets/scrollarea.cpp +++ b/src/gui/widgets/scrollarea.cpp @@ -347,6 +347,7 @@ void ScrollArea::drawButton(gcn::Graphics *graphics, BUTTON_DIR dir) state = mRightButtonPressed ? 1 : 0; dim = getRightButtonDimension(); break; + case BUTTONS_DIR: default: logger->log("ScrollArea::drawButton unknown dir: " + toString(static_cast<unsigned>(dir))); diff --git a/src/gui/widgets/slider.cpp b/src/gui/widgets/slider.cpp index 6b5ad28a4..d97e3e57d 100644 --- a/src/gui/widgets/slider.cpp +++ b/src/gui/widgets/slider.cpp @@ -142,7 +142,8 @@ void Slider::draw(gcn::Graphics *graphics) } x += w; - static_cast<Graphics*>(graphics)->drawImage(buttons[0].grid[HEND], x, y); + static_cast<Graphics*>(graphics)->drawImage( + buttons[0].grid[HEND], x, y); } else { diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h index 94eef42a0..9afc05fcf 100644 --- a/src/gui/widgets/slider.h +++ b/src/gui/widgets/slider.h @@ -80,7 +80,7 @@ class Slider : public gcn::Slider enum SLIDER_ENUM { - HSTART, + HSTART = 0, HMID, HEND, HGRIP, |