changeset 36244:ca4ce05e1930

Fix texture coordinates and number of characters.
author reimar
date Wed, 12 Jun 2013 18:54:18 +0000
parents 33b774ea1ae6
children 081cb3fca68f
files libvo/matrixview.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/matrixview.c	Wed Jun 12 18:54:16 2013 +0000
+++ b/libvo/matrixview.c	Wed Jun 12 18:54:18 2013 +0000
@@ -64,12 +64,12 @@
     float tx, ty;
     int num2, num3;
 
-    num &= 63;
+    num %= 55;
     //light = light / 255;        //light=7-light;num+=(light*60);
     light *= matrix_brightness;
     num2 = num / 10;
     num3 = num - (num2 * 10);
-    ty = (float)num2 / 7;
+    ty = (float)num2 / 6;
     tx = (float)num3 / 10;
     mpglColor4ub(0, light, 0, 255);        // Basic polygon color
 
@@ -88,9 +88,10 @@
     float tx, ty;
     int num2, num3;
 
+    num %= 55;
     num2 = num / 10;
     num3 = num - (num2 * 10);
-    ty = (float)num2 / 7;
+    ty = (float)num2 / 6;
     tx = (float)num3 / 10;
     mpglColor4ub(128, 128, 128, 255);        // Basic polygon color