From 1a8b5160d105b50f20cb3cc24443b1f41ac6c1af Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 25 Apr 2010 18:10:15 +0200 Subject: added SDL_Surface* display to all repaint/draw methods --- src/menu/drawable_control.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/menu/drawable_control.hpp') diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index 60701f4b..bf7ff42b 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -27,6 +27,8 @@ #ifndef DRAWABLE_CONTROL_HPP #define DRAWABLE_CONTROL_HPP +#include + #include "drawable.hpp" #include "control.hpp" @@ -39,7 +41,7 @@ namespace usdx * Pure virtual method, that descendant classes have to * implement. (Should be left pure virtual.) */ - virtual void draw(void) const = 0; + virtual void draw(SDL_Surface* display) const = 0; public: DrawableControl(Control* parent); -- cgit v1.2.3