diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-09 18:23:39 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | de10bbae4602917aae0ed648824f75c3f674eb4a (patch) | |
tree | 9db2ef22434a9501a1e2e2e75f4bdd14bb3e1e0e /src/menu | |
parent | bdb4a25b0145f6819c508315e893de115f179829 (diff) | |
download | usdx-de10bbae4602917aae0ed648824f75c3f674eb4a.tar.gz usdx-de10bbae4602917aae0ed648824f75c3f674eb4a.tar.xz usdx-de10bbae4602917aae0ed648824f75c3f674eb4a.zip |
menu/text: removed unnecessary block
Diffstat (limited to '')
-rw-r--r-- | src/menu/text.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/menu/text.cpp b/src/menu/text.cpp index 884809c9..96c22626 100644 --- a/src/menu/text.cpp +++ b/src/menu/text.cpp @@ -79,15 +79,13 @@ namespace usdx void Text::draw(void) { - { - boost::mutex::scoped_lock lock(font_mutex); - glTranslatef(offset.get_x(), offset.get_y(), 0.0f); - - // invert y axis, text is drawn using window orientation (origin is - // bottom left) - glScalef(1, -1, 1); - font->Render(text.c_str()); - } + boost::mutex::scoped_lock lock(font_mutex); + glTranslatef(offset.get_x(), offset.get_y(), 0.0f); + + // invert y axis, text is drawn using window orientation (origin is + // bottom left) + glScalef(1, -1, 1); + font->Render(text.c_str()); } void Text::set_font_size(unsigned int value) |