aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-26 22:16:28 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:48 +0100
commit799aa2a252d04e730e598ebb46f3a66f530717c0 (patch)
treeb0c332893b25d750e1747de6b87eb9f8b914ce92
parent7a1e0a7f05a75f64c5ae12c67a3e36d50a4596a7 (diff)
downloadusdx-799aa2a252d04e730e598ebb46f3a66f530717c0.tar.gz
usdx-799aa2a252d04e730e598ebb46f3a66f530717c0.tar.xz
usdx-799aa2a252d04e730e598ebb46f3a66f530717c0.zip
applied the changes from drawable
-rw-r--r--src/menu/reflection.cpp3
-rw-r--r--src/menu/reflection.hpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/menu/reflection.cpp b/src/menu/reflection.cpp
index d4a4bbaf..92ab01e1 100644
--- a/src/menu/reflection.cpp
+++ b/src/menu/reflection.cpp
@@ -36,14 +36,13 @@ namespace usdx
{
}
- void Reflection::on_draw(void) const
+ void Reflection::draw(SDL_Surface* display) const
{
}
void Reflection::set_spacing(float value)
{
spacing = value;
- draw();
}
const float Reflection::get_spacing(void) const
diff --git a/src/menu/reflection.hpp b/src/menu/reflection.hpp
index 4681de5f..aa43491a 100644
--- a/src/menu/reflection.hpp
+++ b/src/menu/reflection.hpp
@@ -37,13 +37,12 @@ namespace usdx
float spacing;
protected:
- virtual void on_draw(void) const;
+ virtual void draw(SDL_Surface* display) const;
public:
Reflection(float spacing);
virtual ~Reflection(void);
-
void set_spacing(float value);
const float get_spacing(void) const;
};