Changed error message again.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1530 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-09-03 23:47:08 +00:00
parent 97dddc60eb
commit 953b9e6383
1 changed files with 4 additions and 2 deletions

View File

@ -157,9 +157,11 @@ int IrrPrintXError(Display *display, XErrorEvent *event)
char msg[256];
char msg2[256];
snprintf(msg, 256, "%d", event->request_code);
XGetErrorDatabaseText(display, "XRequest", msg, "unknown", msg2, 256);
XGetErrorText(display, event->error_code, msg, 256);
XGetErrorDatabaseText(display, "Irrlicht", "XError", "X Error", msg2, 256);
os::Printer::log(msg2, msg, ELL_WARNING);
os::Printer::log("X Error", msg, ELL_WARNING);
os::Printer::log("From call ", msg2, ELL_WARNING);
return 0;
}
#endif