diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-11 21:19:48 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | e0e9997a5e92ce2a31f0ff4d139109be4434105b (patch) | |
tree | e8c3baa67eb65ffc16a9c96fdbb067d142f194bd /src/menu/text.cpp | |
parent | 40caf6163ff2e1274d71146c207fbde0c099b089 (diff) | |
download | usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.tar.gz usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.tar.xz usdx-e0e9997a5e92ce2a31f0ff4d139109be4434105b.zip |
menu: generalized frame_background to background
background could now be a background for all DrawableControl instances
each subclass should call the parents draw() during executing the
draw() method for background painting
TODO: background should know the size of the control to only draw the
background there
Diffstat (limited to '')
-rw-r--r-- | src/menu/text.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/menu/text.cpp b/src/menu/text.cpp index 96c22626..aa4a3195 100644 --- a/src/menu/text.cpp +++ b/src/menu/text.cpp @@ -79,6 +79,8 @@ namespace usdx void Text::draw(void) { + DrawableControl::draw(); + boost::mutex::scoped_lock lock(font_mutex); glTranslatef(offset.get_x(), offset.get_y(), 0.0f); |