X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FGraphic%2FText.cpp;h=6998c7a65557b5bad34dbbc386496c0c10e802fd;hp=a5b60b8701bc6b50182a397a12be917a33c79d30;hb=b9a46d8e2b7e7e22c706e7dd3734f31015db4408;hpb=8b6e8f3ad7390309795eb35c0959264cb7924402 diff --git a/Source/Graphic/Text.cpp b/Source/Graphic/Text.cpp index a5b60b8..6998c7a 100644 --- a/Source/Graphic/Text.cpp +++ b/Source/Graphic/Text.cpp @@ -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