X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGraphic%2FText.cpp;h=b7ec4e5743f71df74b177bc5113cddaf8ad13570;hb=8f8250f231122f66e75fc83506dd51dbce948dd0;hp=a5b60b8701bc6b50182a397a12be917a33c79d30;hpb=8b6e8f3ad7390309795eb35c0959264cb7924402;p=lugaru.git diff --git a/Source/Graphic/Text.cpp b/Source/Graphic/Text.cpp index a5b60b8..b7ec4e5 100644 --- a/Source/Graphic/Text.cpp +++ b/Source/Graphic/Text.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -69,12 +69,13 @@ void Text::BuildFont() // Build Our Font Display List glTexCoord2f(cx, 1 - cy - +.001); // Texture Coord (Top Left) glVertex2i(0, 16); // Vertex Coord (Top Left) glEnd(); // Done Building Our Quad (Character) - if (loop < 256) + if (loop < 256) { glTranslated(10, 0, 0); // Move To The Right Of The Character - else + } else { glTranslated(8, 0, 0); // Move To The Right Of The Character - glEndList(); // Done Building The Display List - } // Loop Until All 256 Are Built + } + glEndList(); // Done Building The Display List + } // Loop Until All 256 Are Built } void Text::_glPrint(float x, float y, const std::string& string, int set, float size, float width, float height, int start, int end, int offset) // Where The Printing Happens