Commit c465004318352f4ffec00f2b22c1d17c2ab62e0b

sammy 2008-04-22T16:45:30

* Fix the demo program so that it uses the FTTextureFont class.

diff --git a/demo/FTGLDemo.cpp b/demo/FTGLDemo.cpp
index 36f4d01..4373ab0 100644
--- a/demo/FTGLDemo.cpp
+++ b/demo/FTGLDemo.cpp
@@ -560,16 +560,16 @@ void parseSpecialKey(int key, int x, int y)
     switch (key)
     {
     case GLUT_KEY_UP:
-        current_font = (current_font + 1)%5;
+        current_font = (current_font + 1) % 6;
         break;
     case GLUT_KEY_DOWN:
-        current_font = (current_font + 4)%5;
+        current_font = (current_font + 4) % 6;
         break;
     case GLUT_KEY_PAGE_UP:
-        currentLayout = (currentLayout + 1)%NumLayouts;
+        currentLayout = (currentLayout + 1) % NumLayouts;
         break;
     case GLUT_KEY_PAGE_DOWN:
-        currentLayout = (currentLayout + NumLayouts - 1)%NumLayouts;
+        currentLayout = (currentLayout + NumLayouts - 1) % NumLayouts;
         break;
     case GLUT_KEY_HOME:
         /* If the current layout is simple decrement its line length */