chiark / gitweb /
Update on the font draw.
authordaid303 <daid303@gmail.com>
Wed, 16 Jan 2013 10:48:27 +0000 (11:48 +0100)
committerdaid303 <daid303@gmail.com>
Wed, 16 Jan 2013 10:48:27 +0000 (11:48 +0100)
Cura/gui/util/opengl.py

index 37a4c54e2f9e2d24de6b81fc13ecae3ade85baaf..9522fa5f9a11476a6409cf55add33d08b825d51e 100644 (file)
@@ -212,7 +212,8 @@ def DrawMachine(machineSize):
        glPushMatrix()
        glTranslate(23, 0, 0)
        noZ = ResetMatrixRotationAndScale()
-       glRasterPos2f(-2,-2)
+       glRasterPos2f(0,0)
+       glBitmap(0,0,0,0, -5, -5, None)
        glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('X'))
        glPopMatrix()
 
@@ -220,8 +221,8 @@ def DrawMachine(machineSize):
        glColor3f(0, 1, 0)
        glPushMatrix()
        glTranslate(0, 23, 0)
-       ResetMatrixRotationAndScale()
-       glRasterPos2f(-2,-2)
+       glRasterPos2f(0,0)
+       glBitmap(0,0,0,0, -5, -5, None)
        glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('Y'))
        glPopMatrix()
 
@@ -230,8 +231,8 @@ def DrawMachine(machineSize):
                glColor3f(0, 0, 1)
                glPushMatrix()
                glTranslate(0, 0, 23)
-               ResetMatrixRotationAndScale()
-               glRasterPos2f(-2,-2)
+               glRasterPos2f(0,0)
+               glBitmap(0,0,0,0, -5, -5, None)
                glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('Z'))
                glPopMatrix()