From 8d37a4ab509e21043db7ce4ef886d1934ce2ada1 Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Mon, 3 Jan 2005 12:42:09 +0000 Subject: [PATCH] Improved error message a bit when no suitable visual could be found (X11 only). git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@556 7f0cb862-5218-0410-a997-914c9d46530a --- ChangeLog | 3 +++ src/freeglut_window.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bb25827..732fb76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -888,3 +888,6 @@ default. (230) Removed acconfig.h, it is deprecated and we don't need it. (231) Cleaned up and autoconf'd the header inclusion story a bit. + +(232) Improved error message a bit when no suitable visual could be found +(X11 only). diff --git a/src/freeglut_window.c b/src/freeglut_window.c index dc5f5d7..3815716 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -302,7 +302,7 @@ void fgOpenWindow( SFG_Window* window, const char* title, } FREEGLUT_INTERNAL_ERROR_EXIT( window->Window.VisualInfo != NULL, - "Unable to get window visual info", "fgOpenWindow" ); + "Visual with necessary capabilities not found", "fgOpenWindow" ); /* * XXX HINT: the masks should be updated when adding/removing callbacks. -- 1.7.10.4