- added thread-safety protection to XListPixmapFormats
- moved pixmap / image format matching ERRs to WARNs

diff --git a/tsx11/X11_calls b/tsx11/X11_calls
index 1a7a121..5a558ca 100644
--- a/tsx11/X11_calls
+++ b/tsx11/X11_calls
@@ -91,6 +91,7 @@
 XKeysymToString
 XListDepths
 XListFonts
+XListPixmapFormats
 XLoadQueryFont
 XLookupKeysym
 XLookupString
diff --git a/tsx11/ts_xlib.c b/tsx11/ts_xlib.c
index c54e366..a5763f3 100644
--- a/tsx11/ts_xlib.c
+++ b/tsx11/ts_xlib.c
@@ -277,6 +277,17 @@
   return r;
 }
 
+XPixmapFormatValues * TSXListPixmapFormats(Display* a0, int* a1)
+{
+  XPixmapFormatValues * r;
+  TRACE("Call XListPixmapFormats\n");
+  EnterCriticalSection( &X11DRV_CritSection );
+  r = XListPixmapFormats(a0, a1);
+  LeaveCriticalSection( &X11DRV_CritSection );
+  TRACE("Ret XListPixmapFormats\n");
+  return r;
+}
+
 int * TSXListDepths(Display* a0, int a1, int* a2)
 {
   int * r;