From 2bd59adc7c456ce6f377feac8bc838e8011ebfc8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Jun 2015 21:49:04 +0300 Subject: Fix code style. --- src/gui/widgets/slider.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/widgets/slider.cpp') diff --git a/src/gui/widgets/slider.cpp b/src/gui/widgets/slider.cpp index 4adc3003f..ae08eaaef 100644 --- a/src/gui/widgets/slider.cpp +++ b/src/gui/widgets/slider.cpp @@ -68,12 +68,8 @@ #include "graphicsvertexes.h" #include "settings.h" -#include "enums/input/inputaction.h" - #include "gui/gui.h" -#include "render/renderers.h" - #include "resources/image.h" #include "resources/imagerect.h" @@ -201,7 +197,6 @@ void Slider::draw(Graphics *graphics) int w = getWidth(); const int h = getHeight(); - int x = 0; const int y = mHasMouse ? (h - buttons[1].grid[HSTART]->getHeight()) / 2 : (h - buttons[0].grid[HSTART]->getHeight()) / 2; @@ -209,6 +204,7 @@ void Slider::draw(Graphics *graphics) if (mRedraw || graphics->getRedraw()) { + int x = 0; mRedraw = false; mVertexes->clear(); if (!mHasMouse) -- cgit v1.2.3-70-g09d2