Adding a more comprehensive warning message if "CreateDC" failed, per e-mail from...
authorJohn F. Fay <johnffay@nettally.com>
Sat, 30 Jan 2010 00:03:48 +0000 (00:03 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sat, 30 Jan 2010 00:03:48 +0000 (00:03 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@873 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_init.c

index c96ca10..7cccc35 100644 (file)
@@ -377,7 +377,8 @@ static void fghInitialize( const char* displayName )
         }
         else
            fgWarning("fghInitialize: "
-                     "CreateDC failed, Screen size info may be incorrect");
+                     "CreateDC failed, Screen size info may be incorrect\n"
+          "This is quite likely caused by a bad '-display' parameter");
       
     }
     /* Set the timer granularity to 1 ms */