Making some constants in the 'subwin' demo floating-point to silence compiler warnings per e-mail from Diederick Niehorster dated 3/22/11 at 8:58 AM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@910 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
f32f2d2b6c
commit
e627bb8e41
@ -191,7 +191,7 @@ main(int argc, char *argv[])
|
|||||||
glutKeyboardFunc(key);
|
glutKeyboardFunc(key);
|
||||||
glutSpecialFunc(special);
|
glutSpecialFunc(special);
|
||||||
glutEntryFunc(entry);
|
glutEntryFunc(entry);
|
||||||
glClearColor(0.7,0.7,0.7,1);
|
glClearColor(0.7f,0.7f,0.7f,1);
|
||||||
winmax = sw1 > winmax ? sw1 : winmax;
|
winmax = sw1 > winmax ? sw1 : winmax;
|
||||||
|
|
||||||
sw2=glutCreateSubWindow(mainwin,328,240,314,236);
|
sw2=glutCreateSubWindow(mainwin,328,240,314,236);
|
||||||
@ -200,7 +200,7 @@ main(int argc, char *argv[])
|
|||||||
glutKeyboardFunc(key);
|
glutKeyboardFunc(key);
|
||||||
glutSpecialFunc(special);
|
glutSpecialFunc(special);
|
||||||
glutEntryFunc(entry);
|
glutEntryFunc(entry);
|
||||||
glClearColor(0.7,0.7,0.7,1);
|
glClearColor(0.7f,0.7f,0.7f,1);
|
||||||
winmax = sw2 > winmax ? sw2 : winmax;
|
winmax = sw2 > winmax ? sw2 : winmax;
|
||||||
|
|
||||||
strings = malloc(sizeof(char *)*(winmax+1));
|
strings = malloc(sizeof(char *)*(winmax+1));
|
||||||
|
Reference in New Issue
Block a user