aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu')
-rw-r--r--src/menu/drawable_control.cpp9
-rw-r--r--src/menu/drawable_control.hpp2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/menu/drawable_control.cpp b/src/menu/drawable_control.cpp
index 222ef3d5..cf44aa73 100644
--- a/src/menu/drawable_control.cpp
+++ b/src/menu/drawable_control.cpp
@@ -24,6 +24,8 @@
* $Id$
*/
+#include <GL/gl.h>
+
#include "drawable_control.hpp"
#include "container.hpp"
@@ -53,6 +55,13 @@ namespace usdx
}
}
+ void DrawableControl::repaint(void)
+ {
+ glLoadIdentity();
+
+ Drawable::repaint();
+ }
+
DrawableControl::ContainerHelper::ContainerHelper(DrawableControl* self) :
self(self)
{
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp
index a2f672c6..de3881c5 100644
--- a/src/menu/drawable_control.hpp
+++ b/src/menu/drawable_control.hpp
@@ -59,6 +59,8 @@ namespace usdx
public:
DrawableControl(Container*);
virtual ~DrawableControl();
+
+ void repaint(void);
};
};