Mercurial > mplayer.hg
comparison libvo/matrixview.c @ 36138:a8fc00cb36c3
Fix matrixview color.
Was broken when replacing glColor4f with glColor4ub.
author | reimar |
---|---|
date | Sat, 04 May 2013 21:44:42 +0000 |
parents | 4129ba181ad7 |
children | f73711af11ae |
comparison
equal
deleted
inserted
replaced
36137:5302a565ada7 | 36138:a8fc00cb36c3 |
---|---|
75 num2 = num / 10; | 75 num2 = num / 10; |
76 num3 = num - (num2 * 10); | 76 num3 = num - (num2 * 10); |
77 ty = (float)num2 / 7; | 77 ty = (float)num2 / 7; |
78 tx = (float)num3 / 10; | 78 tx = (float)num3 / 10; |
79 mpglNormal3f(0.0f, 0.0f, 1.0f); // Needed for lighting | 79 mpglNormal3f(0.0f, 0.0f, 1.0f); // Needed for lighting |
80 mpglColor4ub(0, 255, 255, light); // Basic polygon color | 80 mpglColor4ub(0, 255, 0, light); // Basic polygon color |
81 | 81 |
82 mpglTexCoord2f(tx, ty); | 82 mpglTexCoord2f(tx, ty); |
83 mpglVertex3f(x, y, z); | 83 mpglVertex3f(x, y, z); |
84 mpglTexCoord2f(tx + 0.1, ty); | 84 mpglTexCoord2f(tx + 0.1, ty); |
85 mpglVertex3f(x + 1, y, z); | 85 mpglVertex3f(x + 1, y, z); |