summaryrefslogtreecommitdiff
path: root/lib/glfont.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/glfont.cc')
-rw-r--r--lib/glfont.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/glfont.cc b/lib/glfont.cc
index e4556ff..0956b36 100644
--- a/lib/glfont.cc
+++ b/lib/glfont.cc
@@ -168,9 +168,8 @@ void mogltk::font::drawentry(Uint16 entry, int x, int y, Color c) {
was2D = mogltk::glbase::is2D();
- if (!was2D) {
+ if (!was2D)
mogltk::glbase::Enter2DMode();
- }
if (shadow) {
int os = shadow;
@@ -198,9 +197,8 @@ void mogltk::font::drawentry(Uint16 entry, int x, int y, Color c) {
glTexCoord2i(px + maxX - 1, py + maxY - 1); glVertex2i(x + maxX - 1, y + maxY - 1);
glEnd();
- if (!was2D) {
+ if (!was2D)
mogltk::glbase::Leave2DMode();
- }
}
void mogltk::font::Bind(int index) {
@@ -287,7 +285,7 @@ int mogltk::font::printf(const char * p, ...) {
m.p = p;
- va_start(ap, m);
+ va_start(ap, p);
r = printf(m, ap);
va_end(ap);