diff src/video/x11/SDL_x11dyn.h @ 1248:d2c6881935be

Catch X11 extension errors...since most of these are notifications that we queried for a missing extension (such as the XiG vidmode one that most people don't have), and default Xlib behaviour is to write notification to stderr, this tends to generate incorrect bug reports. Since we'll actually deal with the missing extension when querying for it, we ignore these errors in our hook. The rest continue to pass through to the default handler. Fixes Bugzilla #42. --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 14 Jan 2006 08:15:38 +0000
parents a388f2b59044
children 2bf9dda618e5
line wrap: on
line diff
--- a/src/video/x11/SDL_x11dyn.h	Fri Jan 13 02:36:35 2006 +0000
+++ b/src/video/x11/SDL_x11dyn.h	Sat Jan 14 08:15:38 2006 +0000
@@ -57,6 +57,7 @@
 typedef Bool (*SDL_X11_XESetWireToEventRetType)(Display*,XEvent*,xEvent*);
 typedef int (*SDL_X11_XSynchronizeRetType)(Display*);
 typedef Status (*SDL_X11_XESetEventToWireRetType)(Display*,XEvent*,xEvent*);
+typedef int (*SDL_X11_XSetExtensionErrorHandlerType)(Display *,char *,char *);
 
 #define SDL_X11_SYM(req,ret,fn,params) extern ret (*p##fn) params;
 #include "SDL_x11sym.h"