From e627bb8e4169bba9e7744813f92cc8193c02ea35 Mon Sep 17 00:00:00 2001 From: fayjf Date: Wed, 23 Mar 2011 03:38:25 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/progs/demos/subwin/subwin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freeglut/freeglut/progs/demos/subwin/subwin.c b/freeglut/freeglut/progs/demos/subwin/subwin.c index df8ef62..47076e5 100644 --- a/freeglut/freeglut/progs/demos/subwin/subwin.c +++ b/freeglut/freeglut/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));