diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-07-22 13:45:31 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-07-22 13:45:31 +0000 |
commit | c712425d0da07993e544c6967c56375203cdf6e4 (patch) | |
tree | 14c75c1c50907ec9440845f9b8a18d538dbe66e0 /progs | |
parent | 5c711e3671b9e01f0bf6c1b8e64e486c5c3afe6f (diff) |
fix warnings (bug 580528)
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/paltex.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/progs/demos/paltex.c b/progs/demos/paltex.c index 67ba27bb8a..242d0c4bd3 100644 --- a/progs/demos/paltex.c +++ b/progs/demos/paltex.c @@ -1,4 +1,4 @@ -/* $Id: paltex.c,v 1.8 2002/07/12 15:54:02 brianp Exp $ */ +/* $Id: paltex.c,v 1.9 2002/07/22 13:45:31 brianp Exp $ */ /* * Paletted texture demo. Written by Brian Paul. @@ -94,15 +94,16 @@ static void Init( void ) { #define HEIGHT 8 #define WIDTH 32 - static char texture[HEIGHT][WIDTH] = { - " ", - " MMM EEEE SSS AAA ", - " M M M E S S A A ", - " M M M EEEE SS A A ", - " M M M E SS AAAAA ", - " M M E S S A A ", - " M M EEEE SSS A A ", - " " + /* 257 = HEIGHT * WIDTH + 1 (for trailing '\0') */ + static char texture[257] = {"\ + \ + MMM EEEE SSS AAA \ + M M M E S S A A \ + M M M EEEE SS A A \ + M M M E SS AAAAA \ + M M E S S A A \ + M M EEEE SSS A A \ + " }; GLubyte table[256][4]; |