From 1ca09259a5195eda52223172e35c58f24383329d Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 12 Feb 2003 00:29:15 +0000 Subject: sprites finished... have to test 'em now... --- lib/glfont.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/glfont.cc') 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); -- cgit v1.2.3