Added header control cursors and drag list arrow icon.
[wine/multimedia.git] / tsx11 / ts_xlib.c
blob0af82e4029195c16498404e9f9c1942931b0750e
1 /*
2 * Thread safe wrappers around Xlib calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
10 #include <X11/Xlib.h>
12 #include "debugtools.h"
13 #include "ts_xlib.h"
14 #include "x11drv.h"
16 DEFAULT_DEBUG_CHANNEL(x11)
18 XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
20 XFontStruct * r;
21 TRACE("Call XLoadQueryFont\n");
22 EnterCriticalSection( &X11DRV_CritSection );
23 r = XLoadQueryFont(a0, a1);
24 LeaveCriticalSection( &X11DRV_CritSection );
25 TRACE("Ret XLoadQueryFont\n");
26 return r;
29 XModifierKeymap * TSXGetModifierMapping(Display* a0)
31 XModifierKeymap * r;
32 TRACE("Call XGetModifierMapping\n");
33 EnterCriticalSection( &X11DRV_CritSection );
34 r = XGetModifierMapping(a0);
35 LeaveCriticalSection( &X11DRV_CritSection );
36 TRACE("Ret XGetModifierMapping\n");
37 return r;
40 XImage * TSXCreateImage(Display* a0, Visual* a1, unsigned int a2, int a3, int a4, char* a5, unsigned int a6, unsigned int a7, int a8, int a9)
42 XImage * r;
43 TRACE("Call XCreateImage\n");
44 EnterCriticalSection( &X11DRV_CritSection );
45 r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
46 LeaveCriticalSection( &X11DRV_CritSection );
47 TRACE("Ret XCreateImage\n");
48 return r;
51 XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
53 XImage * r;
54 TRACE("Call XGetImage\n");
55 EnterCriticalSection( &X11DRV_CritSection );
56 r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
57 LeaveCriticalSection( &X11DRV_CritSection );
58 TRACE("Ret XGetImage\n");
59 return r;
62 XImage * TSXGetSubImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7, XImage* a8, int a9, int a10)
64 XImage * r;
65 TRACE("Call XGetSubImage\n");
66 EnterCriticalSection( &X11DRV_CritSection );
67 r = XGetSubImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
68 LeaveCriticalSection( &X11DRV_CritSection );
69 TRACE("Ret XGetSubImage\n");
70 return r;
73 Display * TSXOpenDisplay(const char* a0)
75 Display * r;
76 TRACE("Call XOpenDisplay\n");
77 EnterCriticalSection( &X11DRV_CritSection );
78 r = XOpenDisplay(a0);
79 LeaveCriticalSection( &X11DRV_CritSection );
80 TRACE("Ret XOpenDisplay\n");
81 return r;
84 void TSXrmInitialize(void)
86 TRACE("Call XrmInitialize\n");
87 EnterCriticalSection( &X11DRV_CritSection );
88 XrmInitialize();
89 LeaveCriticalSection( &X11DRV_CritSection );
90 TRACE("Ret XrmInitialize\n");
93 char * TSXGetAtomName(Display* a0, Atom a1)
95 char * r;
96 TRACE("Call XGetAtomName\n");
97 EnterCriticalSection( &X11DRV_CritSection );
98 r = XGetAtomName(a0, a1);
99 LeaveCriticalSection( &X11DRV_CritSection );
100 TRACE("Ret XGetAtomName\n");
101 return r;
104 char * TSXKeysymToString(KeySym a0)
106 char * r;
107 TRACE("Call XKeysymToString\n");
108 EnterCriticalSection( &X11DRV_CritSection );
109 r = XKeysymToString(a0);
110 LeaveCriticalSection( &X11DRV_CritSection );
111 TRACE("Ret XKeysymToString\n");
112 return r;
115 Atom TSXInternAtom(Display* a0, const char* a1, int a2)
117 Atom r;
118 TRACE("Call XInternAtom\n");
119 EnterCriticalSection( &X11DRV_CritSection );
120 r = XInternAtom(a0, a1, a2);
121 LeaveCriticalSection( &X11DRV_CritSection );
122 TRACE("Ret XInternAtom\n");
123 return r;
126 Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
128 Colormap r;
129 TRACE("Call XCopyColormapAndFree\n");
130 EnterCriticalSection( &X11DRV_CritSection );
131 r = XCopyColormapAndFree(a0, a1);
132 LeaveCriticalSection( &X11DRV_CritSection );
133 TRACE("Ret XCopyColormapAndFree\n");
134 return r;
137 Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
139 Colormap r;
140 TRACE("Call XCreateColormap\n");
141 EnterCriticalSection( &X11DRV_CritSection );
142 r = XCreateColormap(a0, a1, a2, a3);
143 LeaveCriticalSection( &X11DRV_CritSection );
144 TRACE("Ret XCreateColormap\n");
145 return r;
148 Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
150 Cursor r;
151 TRACE("Call XCreatePixmapCursor\n");
152 EnterCriticalSection( &X11DRV_CritSection );
153 r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
154 LeaveCriticalSection( &X11DRV_CritSection );
155 TRACE("Ret XCreatePixmapCursor\n");
156 return r;
159 Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
161 Cursor r;
162 TRACE("Call XCreateFontCursor\n");
163 EnterCriticalSection( &X11DRV_CritSection );
164 r = XCreateFontCursor(a0, a1);
165 LeaveCriticalSection( &X11DRV_CritSection );
166 TRACE("Ret XCreateFontCursor\n");
167 return r;
170 GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
172 GC r;
173 TRACE("Call XCreateGC\n");
174 EnterCriticalSection( &X11DRV_CritSection );
175 r = XCreateGC(a0, a1, a2, a3);
176 LeaveCriticalSection( &X11DRV_CritSection );
177 TRACE("Ret XCreateGC\n");
178 return r;
181 Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
183 Pixmap r;
184 TRACE("Call XCreatePixmap\n");
185 EnterCriticalSection( &X11DRV_CritSection );
186 r = XCreatePixmap(a0, a1, a2, a3, a4);
187 LeaveCriticalSection( &X11DRV_CritSection );
188 TRACE("Ret XCreatePixmap\n");
189 return r;
192 Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
194 Pixmap r;
195 TRACE("Call XCreateBitmapFromData\n");
196 EnterCriticalSection( &X11DRV_CritSection );
197 r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
198 LeaveCriticalSection( &X11DRV_CritSection );
199 TRACE("Ret XCreateBitmapFromData\n");
200 return r;
203 Window TSXGetSelectionOwner(Display* a0, Atom a1)
205 Window r;
206 TRACE("Call XGetSelectionOwner\n");
207 EnterCriticalSection( &X11DRV_CritSection );
208 r = XGetSelectionOwner(a0, a1);
209 LeaveCriticalSection( &X11DRV_CritSection );
210 TRACE("Ret XGetSelectionOwner\n");
211 return r;
214 Window TSXCreateWindow(Display* a0, Window a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned int a6, int a7, unsigned int a8, Visual* a9, unsigned long a10, XSetWindowAttributes* a11)
216 Window r;
217 TRACE("Call XCreateWindow\n");
218 EnterCriticalSection( &X11DRV_CritSection );
219 r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
220 LeaveCriticalSection( &X11DRV_CritSection );
221 TRACE("Ret XCreateWindow\n");
222 return r;
225 char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
227 char ** r;
228 TRACE("Call XListFonts\n");
229 EnterCriticalSection( &X11DRV_CritSection );
230 r = XListFonts(a0, a1, a2, a3);
231 LeaveCriticalSection( &X11DRV_CritSection );
232 TRACE("Ret XListFonts\n");
233 return r;
236 KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
238 KeySym r;
239 TRACE("Call XKeycodeToKeysym\n");
240 EnterCriticalSection( &X11DRV_CritSection );
241 r = XKeycodeToKeysym(a0, a1, a2);
242 LeaveCriticalSection( &X11DRV_CritSection );
243 TRACE("Ret XKeycodeToKeysym\n");
244 return r;
247 KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
249 KeySym r;
250 TRACE("Call XLookupKeysym\n");
251 EnterCriticalSection( &X11DRV_CritSection );
252 r = XLookupKeysym(a0, a1);
253 LeaveCriticalSection( &X11DRV_CritSection );
254 TRACE("Ret XLookupKeysym\n");
255 return r;
258 KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
260 KeySym * r;
261 TRACE("Call XGetKeyboardMapping\n");
262 EnterCriticalSection( &X11DRV_CritSection );
263 r = XGetKeyboardMapping(a0, a1, a2, a3);
264 LeaveCriticalSection( &X11DRV_CritSection );
265 TRACE("Ret XGetKeyboardMapping\n");
266 return r;
269 char * TSXResourceManagerString(Display* a0)
271 char * r;
272 TRACE("Call XResourceManagerString\n");
273 EnterCriticalSection( &X11DRV_CritSection );
274 r = XResourceManagerString(a0);
275 LeaveCriticalSection( &X11DRV_CritSection );
276 TRACE("Ret XResourceManagerString\n");
277 return r;
280 int TSXInitThreads(void)
282 int r;
283 TRACE("Call XInitThreads\n");
284 EnterCriticalSection( &X11DRV_CritSection );
285 r = XInitThreads();
286 LeaveCriticalSection( &X11DRV_CritSection );
287 TRACE("Ret XInitThreads\n");
288 return r;
291 XPixmapFormatValues * TSXListPixmapFormats(Display* a0, int* a1)
293 XPixmapFormatValues * r;
294 TRACE("Call XListPixmapFormats\n");
295 EnterCriticalSection( &X11DRV_CritSection );
296 r = XListPixmapFormats(a0, a1);
297 LeaveCriticalSection( &X11DRV_CritSection );
298 TRACE("Ret XListPixmapFormats\n");
299 return r;
302 int * TSXListDepths(Display* a0, int a1, int* a2)
304 int * r;
305 TRACE("Call XListDepths\n");
306 EnterCriticalSection( &X11DRV_CritSection );
307 r = XListDepths(a0, a1, a2);
308 LeaveCriticalSection( &X11DRV_CritSection );
309 TRACE("Ret XListDepths\n");
310 return r;
313 int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
315 int r;
316 TRACE("Call XReconfigureWMWindow\n");
317 EnterCriticalSection( &X11DRV_CritSection );
318 r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
319 LeaveCriticalSection( &X11DRV_CritSection );
320 TRACE("Ret XReconfigureWMWindow\n");
321 return r;
324 int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
326 int r;
327 TRACE("Call XSetWMProtocols\n");
328 EnterCriticalSection( &X11DRV_CritSection );
329 r = XSetWMProtocols(a0, a1, a2, a3);
330 LeaveCriticalSection( &X11DRV_CritSection );
331 TRACE("Ret XSetWMProtocols\n");
332 return r;
335 int TSXIconifyWindow(Display* a0, Window a1, int a2)
337 int r;
338 TRACE("Call XIconifyWindow\n");
339 EnterCriticalSection( &X11DRV_CritSection );
340 r = XIconifyWindow(a0, a1, a2);
341 LeaveCriticalSection( &X11DRV_CritSection );
342 TRACE("Ret XIconifyWindow\n");
343 return r;
346 int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
348 int r;
349 TRACE("Call XSetTransientForHint\n");
350 EnterCriticalSection( &X11DRV_CritSection );
351 r = XSetTransientForHint(a0, a1, a2);
352 LeaveCriticalSection( &X11DRV_CritSection );
353 TRACE("Ret XSetTransientForHint\n");
354 return r;
357 int TSXActivateScreenSaver(Display* a0)
359 int r;
360 TRACE("Call XActivateScreenSaver\n");
361 EnterCriticalSection( &X11DRV_CritSection );
362 r = XActivateScreenSaver(a0);
363 LeaveCriticalSection( &X11DRV_CritSection );
364 TRACE("Ret XActivateScreenSaver\n");
365 return r;
368 int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
370 int r;
371 TRACE("Call XAllocColor\n");
372 EnterCriticalSection( &X11DRV_CritSection );
373 r = XAllocColor(a0, a1, a2);
374 LeaveCriticalSection( &X11DRV_CritSection );
375 TRACE("Ret XAllocColor\n");
376 return r;
379 int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
381 int r;
382 TRACE("Call XAllocColorCells\n");
383 EnterCriticalSection( &X11DRV_CritSection );
384 r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
385 LeaveCriticalSection( &X11DRV_CritSection );
386 TRACE("Ret XAllocColorCells\n");
387 return r;
390 int TSXBell(Display* a0, int a1)
392 int r;
393 TRACE("Call XBell\n");
394 EnterCriticalSection( &X11DRV_CritSection );
395 r = XBell(a0, a1);
396 LeaveCriticalSection( &X11DRV_CritSection );
397 TRACE("Ret XBell\n");
398 return r;
401 int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
403 int r;
404 TRACE("Call XChangeGC\n");
405 EnterCriticalSection( &X11DRV_CritSection );
406 r = XChangeGC(a0, a1, a2, a3);
407 LeaveCriticalSection( &X11DRV_CritSection );
408 TRACE("Ret XChangeGC\n");
409 return r;
412 int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
414 int r;
415 TRACE("Call XChangeKeyboardControl\n");
416 EnterCriticalSection( &X11DRV_CritSection );
417 r = XChangeKeyboardControl(a0, a1, a2);
418 LeaveCriticalSection( &X11DRV_CritSection );
419 TRACE("Ret XChangeKeyboardControl\n");
420 return r;
423 int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
425 int r;
426 TRACE("Call XChangeProperty\n");
427 EnterCriticalSection( &X11DRV_CritSection );
428 r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
429 LeaveCriticalSection( &X11DRV_CritSection );
430 TRACE("Ret XChangeProperty\n");
431 return r;
434 int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
436 int r;
437 TRACE("Call XChangeWindowAttributes\n");
438 EnterCriticalSection( &X11DRV_CritSection );
439 r = XChangeWindowAttributes(a0, a1, a2, a3);
440 LeaveCriticalSection( &X11DRV_CritSection );
441 TRACE("Ret XChangeWindowAttributes\n");
442 return r;
445 int TSXCheckTypedEvent(Display* a0, int a1, XEvent* a2)
447 int r;
448 TRACE("Call XCheckTypedEvent\n");
449 EnterCriticalSection( &X11DRV_CritSection );
450 r = XCheckTypedEvent(a0, a1, a2);
451 LeaveCriticalSection( &X11DRV_CritSection );
452 TRACE("Ret XCheckTypedEvent\n");
453 return r;
456 int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
458 int r;
459 TRACE("Call XCheckTypedWindowEvent\n");
460 EnterCriticalSection( &X11DRV_CritSection );
461 r = XCheckTypedWindowEvent(a0, a1, a2, a3);
462 LeaveCriticalSection( &X11DRV_CritSection );
463 TRACE("Ret XCheckTypedWindowEvent\n");
464 return r;
467 int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
469 int r;
470 TRACE("Call XCheckWindowEvent\n");
471 EnterCriticalSection( &X11DRV_CritSection );
472 r = XCheckWindowEvent(a0, a1, a2, a3);
473 LeaveCriticalSection( &X11DRV_CritSection );
474 TRACE("Ret XCheckWindowEvent\n");
475 return r;
478 int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
480 int r;
481 TRACE("Call XConvertSelection\n");
482 EnterCriticalSection( &X11DRV_CritSection );
483 r = XConvertSelection(a0, a1, a2, a3, a4, a5);
484 LeaveCriticalSection( &X11DRV_CritSection );
485 TRACE("Ret XConvertSelection\n");
486 return r;
489 int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
491 int r;
492 TRACE("Call XCopyArea\n");
493 EnterCriticalSection( &X11DRV_CritSection );
494 r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
495 LeaveCriticalSection( &X11DRV_CritSection );
496 TRACE("Ret XCopyArea\n");
497 return r;
500 int TSXCopyPlane(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9, unsigned long a10)
502 int r;
503 TRACE("Call XCopyPlane\n");
504 EnterCriticalSection( &X11DRV_CritSection );
505 r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
506 LeaveCriticalSection( &X11DRV_CritSection );
507 TRACE("Ret XCopyPlane\n");
508 return r;
511 int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
513 int r;
514 TRACE("Call XDefineCursor\n");
515 EnterCriticalSection( &X11DRV_CritSection );
516 r = XDefineCursor(a0, a1, a2);
517 LeaveCriticalSection( &X11DRV_CritSection );
518 TRACE("Ret XDefineCursor\n");
519 return r;
522 int TSXDeleteProperty(Display* a0, Window a1, Atom a2)
524 int r;
525 TRACE("Call XDeleteProperty\n");
526 EnterCriticalSection( &X11DRV_CritSection );
527 r = XDeleteProperty(a0, a1, a2);
528 LeaveCriticalSection( &X11DRV_CritSection );
529 TRACE("Ret XDeleteProperty\n");
530 return r;
533 int TSXDestroyWindow(Display* a0, Window a1)
535 int r;
536 TRACE("Call XDestroyWindow\n");
537 EnterCriticalSection( &X11DRV_CritSection );
538 r = XDestroyWindow(a0, a1);
539 LeaveCriticalSection( &X11DRV_CritSection );
540 TRACE("Ret XDestroyWindow\n");
541 return r;
544 int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
546 int r;
547 TRACE("Call XDisplayKeycodes\n");
548 EnterCriticalSection( &X11DRV_CritSection );
549 r = XDisplayKeycodes(a0, a1, a2);
550 LeaveCriticalSection( &X11DRV_CritSection );
551 TRACE("Ret XDisplayKeycodes\n");
552 return r;
555 int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
557 int r;
558 TRACE("Call XDrawArc\n");
559 EnterCriticalSection( &X11DRV_CritSection );
560 r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
561 LeaveCriticalSection( &X11DRV_CritSection );
562 TRACE("Ret XDrawArc\n");
563 return r;
566 int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
568 int r;
569 TRACE("Call XDrawLine\n");
570 EnterCriticalSection( &X11DRV_CritSection );
571 r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
572 LeaveCriticalSection( &X11DRV_CritSection );
573 TRACE("Ret XDrawLine\n");
574 return r;
577 int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
579 int r;
580 TRACE("Call XDrawLines\n");
581 EnterCriticalSection( &X11DRV_CritSection );
582 r = XDrawLines(a0, a1, a2, a3, a4, a5);
583 LeaveCriticalSection( &X11DRV_CritSection );
584 TRACE("Ret XDrawLines\n");
585 return r;
588 int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
590 int r;
591 TRACE("Call XDrawPoint\n");
592 EnterCriticalSection( &X11DRV_CritSection );
593 r = XDrawPoint(a0, a1, a2, a3, a4);
594 LeaveCriticalSection( &X11DRV_CritSection );
595 TRACE("Ret XDrawPoint\n");
596 return r;
599 int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
601 int r;
602 TRACE("Call XDrawRectangle\n");
603 EnterCriticalSection( &X11DRV_CritSection );
604 r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
605 LeaveCriticalSection( &X11DRV_CritSection );
606 TRACE("Ret XDrawRectangle\n");
607 return r;
610 int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
612 int r;
613 TRACE("Call XDrawSegments\n");
614 EnterCriticalSection( &X11DRV_CritSection );
615 r = XDrawSegments(a0, a1, a2, a3, a4);
616 LeaveCriticalSection( &X11DRV_CritSection );
617 TRACE("Ret XDrawSegments\n");
618 return r;
621 int TSXDrawString16(Display* a0, Drawable a1, GC a2, int a3, int a4, const XChar2b* a5, int a6)
623 int r;
624 TRACE("Call XDrawString16\n");
625 EnterCriticalSection( &X11DRV_CritSection );
626 r = XDrawString16(a0, a1, a2, a3, a4, a5, a6);
627 LeaveCriticalSection( &X11DRV_CritSection );
628 TRACE("Ret XDrawString16\n");
629 return r;
632 int TSXDrawText16(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem16* a5, int a6)
634 int r;
635 TRACE("Call XDrawText16\n");
636 EnterCriticalSection( &X11DRV_CritSection );
637 r = XDrawText16(a0, a1, a2, a3, a4, a5, a6);
638 LeaveCriticalSection( &X11DRV_CritSection );
639 TRACE("Ret XDrawText16\n");
640 return r;
643 int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
645 int r;
646 TRACE("Call XFillArc\n");
647 EnterCriticalSection( &X11DRV_CritSection );
648 r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
649 LeaveCriticalSection( &X11DRV_CritSection );
650 TRACE("Ret XFillArc\n");
651 return r;
654 int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
656 int r;
657 TRACE("Call XFillPolygon\n");
658 EnterCriticalSection( &X11DRV_CritSection );
659 r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
660 LeaveCriticalSection( &X11DRV_CritSection );
661 TRACE("Ret XFillPolygon\n");
662 return r;
665 int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
667 int r;
668 TRACE("Call XFillRectangle\n");
669 EnterCriticalSection( &X11DRV_CritSection );
670 r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
671 LeaveCriticalSection( &X11DRV_CritSection );
672 TRACE("Ret XFillRectangle\n");
673 return r;
676 int TSXFlush(Display* a0)
678 int r;
679 TRACE("Call XFlush\n");
680 EnterCriticalSection( &X11DRV_CritSection );
681 r = XFlush(a0);
682 LeaveCriticalSection( &X11DRV_CritSection );
683 TRACE("Ret XFlush\n");
684 return r;
687 int TSXFree(void* a0)
689 int r;
690 TRACE("Call XFree\n");
691 EnterCriticalSection( &X11DRV_CritSection );
692 r = XFree(a0);
693 LeaveCriticalSection( &X11DRV_CritSection );
694 TRACE("Ret XFree\n");
695 return r;
698 int TSXFreeColormap(Display* a0, Colormap a1)
700 int r;
701 TRACE("Call XFreeColormap\n");
702 EnterCriticalSection( &X11DRV_CritSection );
703 r = XFreeColormap(a0, a1);
704 LeaveCriticalSection( &X11DRV_CritSection );
705 TRACE("Ret XFreeColormap\n");
706 return r;
709 int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
711 int r;
712 TRACE("Call XFreeColors\n");
713 EnterCriticalSection( &X11DRV_CritSection );
714 r = XFreeColors(a0, a1, a2, a3, a4);
715 LeaveCriticalSection( &X11DRV_CritSection );
716 TRACE("Ret XFreeColors\n");
717 return r;
720 int TSXFreeCursor(Display* a0, Cursor a1)
722 int r;
723 TRACE("Call XFreeCursor\n");
724 EnterCriticalSection( &X11DRV_CritSection );
725 r = XFreeCursor(a0, a1);
726 LeaveCriticalSection( &X11DRV_CritSection );
727 TRACE("Ret XFreeCursor\n");
728 return r;
731 int TSXFreeFont(Display* a0, XFontStruct* a1)
733 int r;
734 TRACE("Call XFreeFont\n");
735 EnterCriticalSection( &X11DRV_CritSection );
736 r = XFreeFont(a0, a1);
737 LeaveCriticalSection( &X11DRV_CritSection );
738 TRACE("Ret XFreeFont\n");
739 return r;
742 int TSXFreeFontNames(char** a0)
744 int r;
745 TRACE("Call XFreeFontNames\n");
746 EnterCriticalSection( &X11DRV_CritSection );
747 r = XFreeFontNames(a0);
748 LeaveCriticalSection( &X11DRV_CritSection );
749 TRACE("Ret XFreeFontNames\n");
750 return r;
753 int TSXFreeGC(Display* a0, GC a1)
755 int r;
756 TRACE("Call XFreeGC\n");
757 EnterCriticalSection( &X11DRV_CritSection );
758 r = XFreeGC(a0, a1);
759 LeaveCriticalSection( &X11DRV_CritSection );
760 TRACE("Ret XFreeGC\n");
761 return r;
764 int TSXFreeModifiermap(XModifierKeymap* a0)
766 int r;
767 TRACE("Call XFreeModifiermap\n");
768 EnterCriticalSection( &X11DRV_CritSection );
769 r = XFreeModifiermap(a0);
770 LeaveCriticalSection( &X11DRV_CritSection );
771 TRACE("Ret XFreeModifiermap\n");
772 return r;
775 int TSXFreePixmap(Display* a0, Pixmap a1)
777 int r;
778 TRACE("Call XFreePixmap\n");
779 EnterCriticalSection( &X11DRV_CritSection );
780 r = XFreePixmap(a0, a1);
781 LeaveCriticalSection( &X11DRV_CritSection );
782 TRACE("Ret XFreePixmap\n");
783 return r;
786 int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
788 int r;
789 TRACE("Call XGetFontProperty\n");
790 EnterCriticalSection( &X11DRV_CritSection );
791 r = XGetFontProperty(a0, a1, a2);
792 LeaveCriticalSection( &X11DRV_CritSection );
793 TRACE("Ret XGetFontProperty\n");
794 return r;
797 int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
799 int r;
800 TRACE("Call XGetGeometry\n");
801 EnterCriticalSection( &X11DRV_CritSection );
802 r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
803 LeaveCriticalSection( &X11DRV_CritSection );
804 TRACE("Ret XGetGeometry\n");
805 return r;
808 int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
810 int r;
811 TRACE("Call XGetInputFocus\n");
812 EnterCriticalSection( &X11DRV_CritSection );
813 r = XGetInputFocus(a0, a1, a2);
814 LeaveCriticalSection( &X11DRV_CritSection );
815 TRACE("Ret XGetInputFocus\n");
816 return r;
819 int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
821 int r;
822 TRACE("Call XGetKeyboardControl\n");
823 EnterCriticalSection( &X11DRV_CritSection );
824 r = XGetKeyboardControl(a0, a1);
825 LeaveCriticalSection( &X11DRV_CritSection );
826 TRACE("Ret XGetKeyboardControl\n");
827 return r;
830 int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
832 int r;
833 TRACE("Call XGetScreenSaver\n");
834 EnterCriticalSection( &X11DRV_CritSection );
835 r = XGetScreenSaver(a0, a1, a2, a3, a4);
836 LeaveCriticalSection( &X11DRV_CritSection );
837 TRACE("Ret XGetScreenSaver\n");
838 return r;
841 int TSXGetWindowProperty(Display* a0, Window a1, Atom a2, long a3, long a4, int a5, Atom a6, Atom* a7, int* a8, unsigned long* a9, unsigned long* a10, unsigned char** a11)
843 int r;
844 TRACE("Call XGetWindowProperty\n");
845 EnterCriticalSection( &X11DRV_CritSection );
846 r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
847 LeaveCriticalSection( &X11DRV_CritSection );
848 TRACE("Ret XGetWindowProperty\n");
849 return r;
852 int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
854 int r;
855 TRACE("Call XGetWindowAttributes\n");
856 EnterCriticalSection( &X11DRV_CritSection );
857 r = XGetWindowAttributes(a0, a1, a2);
858 LeaveCriticalSection( &X11DRV_CritSection );
859 TRACE("Ret XGetWindowAttributes\n");
860 return r;
863 int TSXGrabKeyboard(Display* a0, Window a1, int a2, int a3, int a4, Time a5)
865 int r;
866 TRACE("Call XGrabKeyboard\n");
867 EnterCriticalSection( &X11DRV_CritSection );
868 r = XGrabKeyboard(a0, a1, a2, a3, a4, a5);
869 LeaveCriticalSection( &X11DRV_CritSection );
870 TRACE("Ret XGrabKeyboard\n");
871 return r;
874 int TSXGrabPointer(Display* a0, Window a1, int a2, unsigned int a3, int a4, int a5, Window a6, Cursor a7, Time a8)
876 int r;
877 TRACE("Call XGrabPointer\n");
878 EnterCriticalSection( &X11DRV_CritSection );
879 r = XGrabPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
880 LeaveCriticalSection( &X11DRV_CritSection );
881 TRACE("Ret XGrabPointer\n");
882 return r;
885 int TSXGrabServer(Display* a0)
887 int r;
888 TRACE("Call XGrabServer\n");
889 EnterCriticalSection( &X11DRV_CritSection );
890 r = XGrabServer(a0);
891 LeaveCriticalSection( &X11DRV_CritSection );
892 TRACE("Ret XGrabServer\n");
893 return r;
896 int TSXInstallColormap(Display* a0, Colormap a1)
898 int r;
899 TRACE("Call XInstallColormap\n");
900 EnterCriticalSection( &X11DRV_CritSection );
901 r = XInstallColormap(a0, a1);
902 LeaveCriticalSection( &X11DRV_CritSection );
903 TRACE("Ret XInstallColormap\n");
904 return r;
907 KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
909 KeyCode r;
910 TRACE("Call XKeysymToKeycode\n");
911 EnterCriticalSection( &X11DRV_CritSection );
912 r = XKeysymToKeycode(a0, a1);
913 LeaveCriticalSection( &X11DRV_CritSection );
914 TRACE("Ret XKeysymToKeycode\n");
915 return r;
918 int TSXMapWindow(Display* a0, Window a1)
920 int r;
921 TRACE("Call XMapWindow\n");
922 EnterCriticalSection( &X11DRV_CritSection );
923 r = XMapWindow(a0, a1);
924 LeaveCriticalSection( &X11DRV_CritSection );
925 TRACE("Ret XMapWindow\n");
926 return r;
929 int TSXNextEvent(Display* a0, XEvent* a1)
931 int r;
932 TRACE("Call XNextEvent\n");
933 EnterCriticalSection( &X11DRV_CritSection );
934 r = XNextEvent(a0, a1);
935 LeaveCriticalSection( &X11DRV_CritSection );
936 TRACE("Ret XNextEvent\n");
937 return r;
940 int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
942 int r;
943 TRACE("Call XParseGeometry\n");
944 EnterCriticalSection( &X11DRV_CritSection );
945 r = XParseGeometry(a0, a1, a2, a3, a4);
946 LeaveCriticalSection( &X11DRV_CritSection );
947 TRACE("Ret XParseGeometry\n");
948 return r;
951 int TSXPending(Display* a0)
953 int r;
954 TRACE("Call XPending\n");
955 EnterCriticalSection( &X11DRV_CritSection );
956 r = XPending(a0);
957 LeaveCriticalSection( &X11DRV_CritSection );
958 TRACE("Ret XPending\n");
959 return r;
962 int TSXPutBackEvent(Display* a0, XEvent* a1)
964 int r;
965 TRACE("Call XPutBackEvent\n");
966 EnterCriticalSection( &X11DRV_CritSection );
967 r = XPutBackEvent(a0, a1);
968 LeaveCriticalSection( &X11DRV_CritSection );
969 TRACE("Ret XPutBackEvent\n");
970 return r;
973 int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
975 int r;
976 TRACE("Call XPutImage\n");
977 EnterCriticalSection( &X11DRV_CritSection );
978 r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
979 LeaveCriticalSection( &X11DRV_CritSection );
980 TRACE("Ret XPutImage\n");
981 return r;
984 int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
986 int r;
987 TRACE("Call XQueryColor\n");
988 EnterCriticalSection( &X11DRV_CritSection );
989 r = XQueryColor(a0, a1, a2);
990 LeaveCriticalSection( &X11DRV_CritSection );
991 TRACE("Ret XQueryColor\n");
992 return r;
995 int TSXQueryKeymap(Display* a0, char* a1)
997 int r;
998 TRACE("Call XQueryKeymap\n");
999 EnterCriticalSection( &X11DRV_CritSection );
1000 r = XQueryKeymap(a0, a1);
1001 LeaveCriticalSection( &X11DRV_CritSection );
1002 TRACE("Ret XQueryKeymap\n");
1003 return r;
1006 int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
1008 int r;
1009 TRACE("Call XQueryPointer\n");
1010 EnterCriticalSection( &X11DRV_CritSection );
1011 r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1012 LeaveCriticalSection( &X11DRV_CritSection );
1013 TRACE("Ret XQueryPointer\n");
1014 return r;
1017 int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
1019 int r;
1020 TRACE("Call XQueryTree\n");
1021 EnterCriticalSection( &X11DRV_CritSection );
1022 r = XQueryTree(a0, a1, a2, a3, a4, a5);
1023 LeaveCriticalSection( &X11DRV_CritSection );
1024 TRACE("Ret XQueryTree\n");
1025 return r;
1028 int TSXRefreshKeyboardMapping(XMappingEvent* a0)
1030 int r;
1031 TRACE("Call XRefreshKeyboardMapping\n");
1032 EnterCriticalSection( &X11DRV_CritSection );
1033 r = XRefreshKeyboardMapping(a0);
1034 LeaveCriticalSection( &X11DRV_CritSection );
1035 TRACE("Ret XRefreshKeyboardMapping\n");
1036 return r;
1039 int TSXResetScreenSaver(Display* a0)
1041 int r;
1042 TRACE("Call XResetScreenSaver\n");
1043 EnterCriticalSection( &X11DRV_CritSection );
1044 r = XResetScreenSaver(a0);
1045 LeaveCriticalSection( &X11DRV_CritSection );
1046 TRACE("Ret XResetScreenSaver\n");
1047 return r;
1050 int TSXRestackWindows(Display* a0, Window* a1, int a2)
1052 int r;
1053 TRACE("Call XRestackWindows\n");
1054 EnterCriticalSection( &X11DRV_CritSection );
1055 r = XRestackWindows(a0, a1, a2);
1056 LeaveCriticalSection( &X11DRV_CritSection );
1057 TRACE("Ret XRestackWindows\n");
1058 return r;
1061 int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
1063 int r;
1064 TRACE("Call XSendEvent\n");
1065 EnterCriticalSection( &X11DRV_CritSection );
1066 r = XSendEvent(a0, a1, a2, a3, a4);
1067 LeaveCriticalSection( &X11DRV_CritSection );
1068 TRACE("Ret XSendEvent\n");
1069 return r;
1072 int TSXSetArcMode(Display* a0, GC a1, int a2)
1074 int r;
1075 TRACE("Call XSetArcMode\n");
1076 EnterCriticalSection( &X11DRV_CritSection );
1077 r = XSetArcMode(a0, a1, a2);
1078 LeaveCriticalSection( &X11DRV_CritSection );
1079 TRACE("Ret XSetArcMode\n");
1080 return r;
1083 int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
1085 int r;
1086 TRACE("Call XSetBackground\n");
1087 EnterCriticalSection( &X11DRV_CritSection );
1088 r = XSetBackground(a0, a1, a2);
1089 LeaveCriticalSection( &X11DRV_CritSection );
1090 TRACE("Ret XSetBackground\n");
1091 return r;
1094 int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
1096 int r;
1097 TRACE("Call XSetClipMask\n");
1098 EnterCriticalSection( &X11DRV_CritSection );
1099 r = XSetClipMask(a0, a1, a2);
1100 LeaveCriticalSection( &X11DRV_CritSection );
1101 TRACE("Ret XSetClipMask\n");
1102 return r;
1105 int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
1107 int r;
1108 TRACE("Call XSetClipOrigin\n");
1109 EnterCriticalSection( &X11DRV_CritSection );
1110 r = XSetClipOrigin(a0, a1, a2, a3);
1111 LeaveCriticalSection( &X11DRV_CritSection );
1112 TRACE("Ret XSetClipOrigin\n");
1113 return r;
1116 int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
1118 int r;
1119 TRACE("Call XSetClipRectangles\n");
1120 EnterCriticalSection( &X11DRV_CritSection );
1121 r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
1122 LeaveCriticalSection( &X11DRV_CritSection );
1123 TRACE("Ret XSetClipRectangles\n");
1124 return r;
1127 int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
1129 int r;
1130 TRACE("Call XSetDashes\n");
1131 EnterCriticalSection( &X11DRV_CritSection );
1132 r = XSetDashes(a0, a1, a2, a3, a4);
1133 LeaveCriticalSection( &X11DRV_CritSection );
1134 TRACE("Ret XSetDashes\n");
1135 return r;
1138 int TSXSetFillStyle(Display* a0, GC a1, int a2)
1140 int r;
1141 TRACE("Call XSetFillStyle\n");
1142 EnterCriticalSection( &X11DRV_CritSection );
1143 r = XSetFillStyle(a0, a1, a2);
1144 LeaveCriticalSection( &X11DRV_CritSection );
1145 TRACE("Ret XSetFillStyle\n");
1146 return r;
1149 int TSXSetFont(Display* a0, GC a1, Font a2)
1151 int r;
1152 TRACE("Call XSetFont\n");
1153 EnterCriticalSection( &X11DRV_CritSection );
1154 r = XSetFont(a0, a1, a2);
1155 LeaveCriticalSection( &X11DRV_CritSection );
1156 TRACE("Ret XSetFont\n");
1157 return r;
1160 int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
1162 int r;
1163 TRACE("Call XSetForeground\n");
1164 EnterCriticalSection( &X11DRV_CritSection );
1165 r = XSetForeground(a0, a1, a2);
1166 LeaveCriticalSection( &X11DRV_CritSection );
1167 TRACE("Ret XSetForeground\n");
1168 return r;
1171 int TSXSetFunction(Display* a0, GC a1, int a2)
1173 int r;
1174 TRACE("Call XSetFunction\n");
1175 EnterCriticalSection( &X11DRV_CritSection );
1176 r = XSetFunction(a0, a1, a2);
1177 LeaveCriticalSection( &X11DRV_CritSection );
1178 TRACE("Ret XSetFunction\n");
1179 return r;
1182 int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
1184 int r;
1185 TRACE("Call XSetGraphicsExposures\n");
1186 EnterCriticalSection( &X11DRV_CritSection );
1187 r = XSetGraphicsExposures(a0, a1, a2);
1188 LeaveCriticalSection( &X11DRV_CritSection );
1189 TRACE("Ret XSetGraphicsExposures\n");
1190 return r;
1193 int TSXSetIconName(Display* a0, Window a1, const char* a2)
1195 int r;
1196 TRACE("Call XSetIconName\n");
1197 EnterCriticalSection( &X11DRV_CritSection );
1198 r = XSetIconName(a0, a1, a2);
1199 LeaveCriticalSection( &X11DRV_CritSection );
1200 TRACE("Ret XSetIconName\n");
1201 return r;
1204 int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
1206 int r;
1207 TRACE("Call XSetInputFocus\n");
1208 EnterCriticalSection( &X11DRV_CritSection );
1209 r = XSetInputFocus(a0, a1, a2, a3);
1210 LeaveCriticalSection( &X11DRV_CritSection );
1211 TRACE("Ret XSetInputFocus\n");
1212 return r;
1215 int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
1217 int r;
1218 TRACE("Call XSetLineAttributes\n");
1219 EnterCriticalSection( &X11DRV_CritSection );
1220 r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
1221 LeaveCriticalSection( &X11DRV_CritSection );
1222 TRACE("Ret XSetLineAttributes\n");
1223 return r;
1226 int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
1228 int r;
1229 TRACE("Call XSetScreenSaver\n");
1230 EnterCriticalSection( &X11DRV_CritSection );
1231 r = XSetScreenSaver(a0, a1, a2, a3, a4);
1232 LeaveCriticalSection( &X11DRV_CritSection );
1233 TRACE("Ret XSetScreenSaver\n");
1234 return r;
1237 int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
1239 int r;
1240 TRACE("Call XSetSelectionOwner\n");
1241 EnterCriticalSection( &X11DRV_CritSection );
1242 r = XSetSelectionOwner(a0, a1, a2, a3);
1243 LeaveCriticalSection( &X11DRV_CritSection );
1244 TRACE("Ret XSetSelectionOwner\n");
1245 return r;
1248 int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
1250 int r;
1251 TRACE("Call XSetSubwindowMode\n");
1252 EnterCriticalSection( &X11DRV_CritSection );
1253 r = XSetSubwindowMode(a0, a1, a2);
1254 LeaveCriticalSection( &X11DRV_CritSection );
1255 TRACE("Ret XSetSubwindowMode\n");
1256 return r;
1259 int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
1261 int r;
1262 TRACE("Call XSetWindowColormap\n");
1263 EnterCriticalSection( &X11DRV_CritSection );
1264 r = XSetWindowColormap(a0, a1, a2);
1265 LeaveCriticalSection( &X11DRV_CritSection );
1266 TRACE("Ret XSetWindowColormap\n");
1267 return r;
1270 int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
1272 int r;
1273 TRACE("Call XStoreColor\n");
1274 EnterCriticalSection( &X11DRV_CritSection );
1275 r = XStoreColor(a0, a1, a2);
1276 LeaveCriticalSection( &X11DRV_CritSection );
1277 TRACE("Ret XStoreColor\n");
1278 return r;
1281 int TSXStoreName(Display* a0, Window a1, const char* a2)
1283 int r;
1284 TRACE("Call XStoreName\n");
1285 EnterCriticalSection( &X11DRV_CritSection );
1286 r = XStoreName(a0, a1, a2);
1287 LeaveCriticalSection( &X11DRV_CritSection );
1288 TRACE("Ret XStoreName\n");
1289 return r;
1292 int TSXSync(Display* a0, int a1)
1294 int r;
1295 TRACE("Call XSync\n");
1296 EnterCriticalSection( &X11DRV_CritSection );
1297 r = XSync(a0, a1);
1298 LeaveCriticalSection( &X11DRV_CritSection );
1299 TRACE("Ret XSync\n");
1300 return r;
1303 int TSXTextExtents16(XFontStruct* a0, const XChar2b* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
1305 int r;
1306 TRACE("Call XTextExtents16\n");
1307 EnterCriticalSection( &X11DRV_CritSection );
1308 r = XTextExtents16(a0, a1, a2, a3, a4, a5, a6);
1309 LeaveCriticalSection( &X11DRV_CritSection );
1310 TRACE("Ret XTextExtents16\n");
1311 return r;
1314 int TSXTextWidth16(XFontStruct* a0, const XChar2b* a1, int a2)
1316 int r;
1317 TRACE("Call XTextWidth16\n");
1318 EnterCriticalSection( &X11DRV_CritSection );
1319 r = XTextWidth16(a0, a1, a2);
1320 LeaveCriticalSection( &X11DRV_CritSection );
1321 TRACE("Ret XTextWidth16\n");
1322 return r;
1325 int TSXUngrabKeyboard(Display* a0, Time a1)
1327 int r;
1328 TRACE("Call XUngrabKeyboard\n");
1329 EnterCriticalSection( &X11DRV_CritSection );
1330 r = XUngrabKeyboard(a0, a1);
1331 LeaveCriticalSection( &X11DRV_CritSection );
1332 TRACE("Ret XUngrabKeyboard\n");
1333 return r;
1336 int TSXUngrabPointer(Display* a0, Time a1)
1338 int r;
1339 TRACE("Call XUngrabPointer\n");
1340 EnterCriticalSection( &X11DRV_CritSection );
1341 r = XUngrabPointer(a0, a1);
1342 LeaveCriticalSection( &X11DRV_CritSection );
1343 TRACE("Ret XUngrabPointer\n");
1344 return r;
1347 int TSXUngrabServer(Display* a0)
1349 int r;
1350 TRACE("Call XUngrabServer\n");
1351 EnterCriticalSection( &X11DRV_CritSection );
1352 r = XUngrabServer(a0);
1353 LeaveCriticalSection( &X11DRV_CritSection );
1354 TRACE("Ret XUngrabServer\n");
1355 return r;
1358 int TSXUninstallColormap(Display* a0, Colormap a1)
1360 int r;
1361 TRACE("Call XUninstallColormap\n");
1362 EnterCriticalSection( &X11DRV_CritSection );
1363 r = XUninstallColormap(a0, a1);
1364 LeaveCriticalSection( &X11DRV_CritSection );
1365 TRACE("Ret XUninstallColormap\n");
1366 return r;
1369 int TSXUnmapWindow(Display* a0, Window a1)
1371 int r;
1372 TRACE("Call XUnmapWindow\n");
1373 EnterCriticalSection( &X11DRV_CritSection );
1374 r = XUnmapWindow(a0, a1);
1375 LeaveCriticalSection( &X11DRV_CritSection );
1376 TRACE("Ret XUnmapWindow\n");
1377 return r;
1380 int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
1382 int r;
1383 TRACE("Call XWarpPointer\n");
1384 EnterCriticalSection( &X11DRV_CritSection );
1385 r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
1386 LeaveCriticalSection( &X11DRV_CritSection );
1387 TRACE("Ret XWarpPointer\n");
1388 return r;
1391 XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
1393 XIM r;
1394 TRACE("Call XOpenIM\n");
1395 EnterCriticalSection( &X11DRV_CritSection );
1396 r = XOpenIM(a0, a1, a2, a3);
1397 LeaveCriticalSection( &X11DRV_CritSection );
1398 TRACE("Ret XOpenIM\n");
1399 return r;
1402 int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
1404 int (*r)(Display *);
1405 TRACE("Call XSynchronize\n");
1406 EnterCriticalSection( &X11DRV_CritSection );
1407 r = XSynchronize(a0, a1);
1408 LeaveCriticalSection( &X11DRV_CritSection );
1409 TRACE("Ret XSynchronize\n");
1410 return r;
1413 extern void _XInitImageFuncPtrs(XImage *);
1415 void TS_XInitImageFuncPtrs(XImage *a0)
1417 TRACE("Call _XInitImageFuncPtrs\n");
1418 EnterCriticalSection( &X11DRV_CritSection );
1419 _XInitImageFuncPtrs(a0);
1420 LeaveCriticalSection( &X11DRV_CritSection );
1421 TRACE("Ret _XInitImageFuncPtrs\n");