aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/menu/text.cpp16
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)