From 37d83729fd3bc90930c4f7a9aa2ec8fdf21b9fed Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Mar 2012 22:23:54 +0100 Subject: menu/drawable_control: added repaint, that reinitialize the gl environment --- src/menu/drawable_control.cpp | 9 +++++++++ src/menu/drawable_control.hpp | 2 ++ 2 files changed, 11 insertions(+) (limited to 'src/menu') 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 + #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); }; }; -- cgit v1.2.3