Hack! disp-kmscube: reduce u/v by 10%
authorVincent Stehlé <v-stehle@ti.com>
Thu, 11 Oct 2012 07:22:03 +0000 (09:22 +0200)
committerNikhil Devshatwar <a0132237@ti.com>
Wed, 22 May 2013 09:45:40 +0000 (15:15 +0530)
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
util/display-kmscube.c

index 755205e5ff73fe8d13c5a33c02218556827ea0ab..97aac4d955d0782977cd81cf4672fd44dc6827c4 100644 (file)
@@ -565,35 +565,35 @@ static void draw(struct display_kmscube *disp_kmsc)
 
        static const GLfloat vTexUVs[] = {
                        // front
-                       0.0f,  1.0f,
-                       1.0f,  1.0f,
-                       0.0f,  0.0f,
-                       1.0f,  0.0f,
+                       0.1f,  0.9f,
+                       0.9f,  0.9f,
+                       0.1f,  0.1f,
+                       0.9f,  0.1f,
                        // back
-                       0.0f,  1.0f,
-                       1.0f,  1.0f,
-                       0.0f,  0.0f,
-                       1.0f,  0.0f,
+                       0.1f,  0.9f,
+                       0.9f,  0.9f,
+                       0.1f,  0.1f,
+                       0.9f,  0.1f,
                        // right
-                       0.0f,  1.0f,
-                       1.0f,  1.0f,
-                       0.0f,  0.0f,
-                       1.0f,  0.0f,
+                       0.1f,  0.9f,
+                       0.9f,  0.9f,
+                       0.1f,  0.1f,
+                       0.9f,  0.1f,
                        // left
-                       0.0f,  1.0f,
-                       1.0f,  1.0f,
-                       0.0f,  0.0f,
-                       1.0f,  0.0f,
+                       0.1f,  0.9f,
+                       0.9f,  0.9f,
+                       0.1f,  0.1f,
+                       0.9f,  0.1f,
                        // top
-                       0.0f,  1.0f,
-                       1.0f,  1.0f,
-                       0.0f,  0.0f,
-                       1.0f,  0.0f,
+                       0.1f,  0.9f,
+                       0.9f,  0.9f,
+                       0.1f,  0.1f,
+                       0.9f,  0.1f,
                        // bottom
-                       0.0f,  1.0f,
-                       1.0f,  1.0f,
-                       0.0f,  0.0f,
-                       1.0f,  0.0f,
+                       0.1f,  0.9f,
+                       0.9f,  0.9f,
+                       0.1f,  0.1f,
+                       0.9f,  0.1f,
        };
 
        /* clear the color buffer */