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:
fayjf 2011-03-23 03:38:25 +00:00
parent f32f2d2b6c
commit e627bb8e41

View File

@ -191,7 +191,7 @@ main(int argc, char *argv[])
glutKeyboardFunc(key);
glutSpecialFunc(special);
glutEntryFunc(entry);
glClearColor(0.7,0.7,0.7,1);
glClearColor(0.7f,0.7f,0.7f,1);
winmax = sw1 > winmax ? sw1 : winmax;
sw2=glutCreateSubWindow(mainwin,328,240,314,236);
@ -200,7 +200,7 @@ main(int argc, char *argv[])
glutKeyboardFunc(key);
glutSpecialFunc(special);
glutEntryFunc(entry);
glClearColor(0.7,0.7,0.7,1);
glClearColor(0.7f,0.7f,0.7f,1);
winmax = sw2 > winmax ? sw2 : winmax;
strings = malloc(sizeof(char *)*(winmax+1));