Commit ec007cbb17c3f9b3a273c1e0627aa0c55aba4358

henry 2004-10-11T09:46:16

Changed the gl window creation so that the pen position test in bitmap font test would work

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/TestMain.cpp b/test/TestMain.cpp
index 966c9c4..db4264a 100755
--- a/test/TestMain.cpp
+++ b/test/TestMain.cpp
@@ -29,9 +29,15 @@ void buildGLContext()
         glutInit( &number, &pointer);
         glutInitDisplayMode(GLUT_DEPTH | GLUT_RGB | GLUT_DOUBLE | GLUT_MULTISAMPLE);
         glutInitWindowPosition(0, 0);
-        glutInitWindowSize( 0, 0);
+        glutInitWindowSize( 150, 150);
         glutCreateWindow("FTGL TEST");
         
+        glMatrixMode(GL_PROJECTION);
+        glLoadIdentity();
+        gluOrtho2D( 0.0, 150, 0.0, 150);
+        glMatrixMode(GL_MODELVIEW);
+        glLoadIdentity();
+        
         glutInitialised = true;
     }
 }