From: John F. Fay Date: Wed, 23 Mar 2011 03:38:25 +0000 (+0000) Subject: Making some constants in the 'subwin' demo floating-point to silence compiler warning... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=ac68e6ca1467c79b204ef2ed436e20cd037ac4e5;p=freeglut 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@910 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/progs/demos/subwin/subwin.c b/progs/demos/subwin/subwin.c index df8ef62..47076e5 100644 --- a/progs/demos/subwin/subwin.c +++ b/progs/demos/subwin/subwin.c @@ -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));