]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Graphic/Text.cpp
Added braces to all statements with clang-tidy and ran clang-format again
[lugaru.git] / Source / Graphic / Text.cpp
index a5b60b8701bc6b50182a397a12be917a33c79d30..6998c7a65557b5bad34dbbc386496c0c10e802fd 100644 (file)
@@ -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