summaryrefslogtreecommitdiffstats
path: root/progs/demos/texenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos/texenv.c')
-rw-r--r--progs/demos/texenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/demos/texenv.c b/progs/demos/texenv.c
index 4c26008136a..705cd2621f9 100644
--- a/progs/demos/texenv.c
+++ b/progs/demos/texenv.c
@@ -271,7 +271,7 @@ static void keyboard( unsigned char c, int x, int y )
{
switch ( c ) {
case 'c':
- envColor = ++envColor % (int) NUM_ENV_COLORS;
+ envColor = (++envColor) % (int) NUM_ENV_COLORS;
break;
case 'g':
drawBackground = !drawBackground;