mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
a0d77315e4
Fri Sep 11 13:14:35 1998 Andreas Mohr <100.30936@germany.net> * [files/file.c] [include/file.h] Fixed SetFilePointer to allow negative positions as in DOS. * [graphics/ddraw.c] Added some methods to IDirect3D. * [ole/compobj.c] [if1632/compobj.spec] Added/implemented CoCreateStandardMalloc16, CoGetClassObject, CoCreateInstance, LookupETask, SetETask, CoGetState16. * [loader/task.c] MakeProcInstance: return 0 if func == NULL. * [*/*] [tools/winapi-check] Added zillions of missing WINAPI's and __cdecl's. (oops, several caused by myself) Wrote script for automated checking. * [if1632/compobj.spec] Many stub names. * [misc/ddeml.c] [ole/compobj.c] Some stubs. Tue Sep 9 21:36:48 1998 Anders Carlsson <anders.carlsson@linux.nu> * [dlls/comctl32/Makefile.in] [dlls/comctl32/commctrl.c] [dlls/comctl32/tab.c] [include/commctrl.h] [include/tab.h] Added preliminary tab control support. Sat Sep 5 16:27:20 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk> * [graphics/psdrv/*] More changes to the PostScript driver: Implemented pens and solid brushes. Colour/greyscale for fonts, pens and brushes. To get coloured output you need to have *ColorDevice set to true in your PPD, otherwise you'll get greyscale. Landscape mode now works, as does non-A4 page sizes. Encoding of fonts to ANSI is better, Symbol works again. * [objects/dc.c] [include/gdi.h] [*/*] Moved dc->w.{text,background}Pixel to X11DRV_PDEVICE where they belong. Sat Sep 5 05:12:09 1998 Ove Kaaven <ovek@arcticnet.no> * [include/dosexe.h] [include/miscemu.h] [include/msdos.h] [loader/dos/dosvm.c] [loader/dos/module.c] [msdos/dpmi.c] [msdos/int2f.c] [msdos/interrupts.c] Fixed portability. Adapted some code to make it easier to integrate the DOS subsystem with the DPMI subsystem, made the DPMI simulated real-mode interrupts be handled the V86 way. Added support for .COM files. Made int2f DPMI check fail, to avoid pkunzip crashing in attempting to use DPMI. Generally moved stuff around a little. It is now technically possible to load several DOS programs into the same memory space. Not tested, though. Fri Sep 4 21:40:45 1998 Marcus Meissner <marcus@jet.franken.de> * [if1632/kernel.spec] Changed 500-53x stubnames accordingly to nt3.51 krnl386.exe. * [win32/except.c] Fixed one bad program behaviour, (deleting SEH while in first walk). RtlUnwind is broken too I think (it should unwind on success, not while walking the exception chain). * [ole/ole2nls.c] Get*DefaultLCID returns 0x400|id. expected by one application. * [if1632/snoop.c] Handle non-standard SP returns more graceful. * [windows/class.c] hinstances are mostly irrelevant for win32. * [memory/string.c] [misc/registry.c] lstrcmpi32W: use toupper for characters < 0x100. (speedup hack for registry.c) Some small speedup hacks for registry.c Thu Sep 3 20:40:16 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de> * [Makefile.in][configure][configure.in][dlls/Makefile.in] [dlls/comctl32/Makefile.in] Created dlls/comctl32 and moved the common controls stuff to it. * [misc/version.c] Removed COMCTL32_DllGetVersion. The fixed function is part of the common controls stuff. * [dlls/comctl32/*.c][include/commctrl.h] Added structure size tests. * [dlls/comctl32/toolbar.c] Fixed a bug in TOOLBAR_GetMaxWidth(). * [dlls/comctl32/animate.c][include/animate.h] [dlls/comctl32/comboex.c][include/comboex.h] [dlls/comctl32/hotkey.c][include/hotkey.h] [dlls/comctl32/listview.c][include/listview.h] [dlls/comctl32/commctrl.c][include/commctrl.h] New files. Added Animation, ComboBoxEx, Hotkey and Listview control dummies. * [dlls/comctl32/tooltips.c] Fixed a display bug and font selection. * [dlls/comctl32/comctl32undoc.c][include/commctrl.h] Added missing DPA functions. Fixed bugs and published the function prototypes. * [documentation/common_controls] Updated. Wed Sep 2 15:43:45 1998 Patrik Stridvall <ps@leissner.se> * [AUTHORS] [include/authors.h] Added myself as a Wine author. * [memory/virtual.c] [objects/dc.c] Fixed runtime errors for Solaris. * [misc/ddeml.c] [objects/gdiobj.c] Minor fixes. * [win32/device.c] Added stubs for IFSMgr VxDCall and a partial implementation of IFSMgr DeviceIo. * [relay32/Makefile.in] [relay32/builtin32.c] [relay32/imm32.spec] [relay32/msnet32.spec] [relay32/oledlg.spec] Added new spec files for IMM32.DLL, MSNET32.DLL, OLEDLG.DLL. * [misc/Makefile.in] [misc/imm.c] [include/imm.h] Added news files for implementation of IMM32.DLL. All functions return 0 as is correct for all Western Languages. * [ole/Makefile.in] [ole/oledlg.c] [include/oledlg.h] Added new files for implementation of OLEDLG.DLL. Added stubs with FIXME:s for all functions. Wed Sep 2 10:50:00 1998 Juergen Schmied <juergen.schmied@metronet.de> * [dlls/shell32/contmenu.c][dlls/shell32/shellole.c] [dlls/shell32/shlfolder.c][dlls/shell32/shlview.c] [documentation/shell32][include/shell.h] Clean up, bugfixes. * [dlls/shell32/enumidlist.c] Fileattributes implemented. * [dlls/shell32/pidl.c] Class pidlmgr splited into functions, structures changed, some functions rewritten. * [dlls/shell32/shell32_main.c] Small changes and bugfixes SHGetFileInfoA, SHGetSpecialFolderLocation. * [dlls/shell32/shellord.c][relay32/shell32.spec] Parameter documented, implemented SHCloneSpecialIDList. Stub improved ShellExecuteEx32A. New stubs SHFind_InitMenuPopup, FileMenu_InitMenuPopup, FileMenu_Create, FileMenu_TrackPopupMenuEx, SHWinHelp, SHRunConrolPanel, DAD_ShowDragImage, FileMenu_Destroy, SHGetDataFromIDListA, SHFileOperationA. * [include/winnls.h][include/ole2nls.c] TIME_FORCE24HOURFORMAT, TIME_NOTIMEMARKER implemented in OLE_GetFormatA, GetTimeFormat32A. * [win32/code_page.c] WideCharToMultiByte: parameter checking and returning of strlen implemented. * [windows/keyboard.c][windows/defwnd.c] Debug messages added. * [windows/win.c] WIN_SetWindowLong GWL_STYLE and GWL_EXSTYLE implemented. * [controls/menu.c] Missing line added. * [include/winerror.h] Macros for SUCCEEDED and FAILED added. Mon Aug 31 00:55:31 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de> * [loader/module.c] Bugfix: LoadModule16 should *not* call LoadModule32. * [files/dos_fs.c] Bugfix: don't crash if given directory doesn't exist. Sat Aug 29 15:00:49 1998 Turchanov Sergey <turchanov@usa.net> * [include/mmsystem.h][multimedia/mmsystem.c][relay32/winmm.spec] Almost completed implementation of [snd]PlaySound (except flags SND_ALIAS_ID and SND_APPLICATION). * [if1632/user.spec][windows/winpos.c] Added SetWindowRgn16 stub. Sat Aug 29 02:53:31 1998 Alexander Lukyanov <lav@long.yar.ru> * [files/drive.c] GetDriveType32A: return DRIVE_DOESNOTEXIST in case of non existent drive. * [msdos/int21.c] INT21_FindFirstFCB: check drive validity to prevent oops. * [win32/file.c] CreateFile32A: duplicate STD_{INPUT,OUTPUT}_HANDLE. * [files/dos_fs.c] Make DOSFS_OpenDir treat "" as "/". DOSFS_OpenDevice: duplicate STD_{INPUT,OUTPUT}_HANDLE. * [windows/dialog.c] GetNextDlgTabItem32: use last/first item instead of first/last when hwndCtrl==0. This fixes initial focus. Sat Aug 29 02:46:32 1998 Adrian Harvey <adrian@select.com.au> * [include/process.h] [include/process.c] Renamed PROCESS_SELF to CURRENT_PROCESS_PSEUDOHANDLE in line with thread constant, and Win32 documentation (which calls it a pseudohandle.) Made GetCurrentProcess actually use this constant instead of the value. * [include/process.h] [include/thread.h] [scheduler/thread.c] [scheduler/process.c] [scheduler/handle.c] Modify HANDLE_GetObjPtr to understand about CURRENT_THREAD_PSEUDOHANDLE and CURRENT_PROCESS_PSEUDOHANDLE. This allows DuplicateHandle to do the correct thing with these handles. Removed now duplicate functionality from THREAD_GetPtr and PROCESS_GetPtr. * [loader/ne/segment.c] Fixed two places where HFILE32s were being created and passed to 16-bit code. This should unbreak NE self-loading code. Added two casts to remove compile time warnings. Fri Aug 28 21:04:13 1998 Joseph Pranevich <knight@baltimore.wwaves.com> * [msdos/dosmem.c] [msdos/int2f.c] Added beginnings of DOS error table. * [msdos/int1a.c] Stub for subfunction 0xb0. * [msdos/int10.c] [loader/dos/dosvm.c] INT 10 support completely rewritten and lots of debugging added. Now, DOS apps that use INT 10 to write to the screen will work. (Beyond Zork does, at least. Somewhat.) * [include/miscemu.h] [msdos/dosmem.c] [msdos/int21.c] Another shot at getting MS's generic error message facility right. * [msdos/int21.c] Command.Com wanted to set its own PSP address. I let it. Wed Aug 26 12:26:20 1998 Matthew Toseland <Matthew.Toseland@btinternet.com> * [include/file.h] [misc/lzexpand.c] Fixed LZCopy16 by fixing HFILE16/HFILE32 convertor macros so don't convert lzw handles. Tue Aug 25 22:22:55 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> * [misc/registry.c] In RegEnumvalue, ivalue == 0 is a legal request and should return the first entry. * [msdos/int21.c] Add handling for Int21-48/49 in Win16. Makes blinker demo work. * [windows/winproc.c] Add Msg32A<->Msg32W translation for LB_ADDSTRING. Tue Aug 25 21:03:31 1998 Kristian Nielsen <kristian.nielsen@risoe.dk> * [windows/win.c] Fix for SetParent(): MS Windows 3.11 does not clear the WS_CHILD flag when a child window is reparented to the desktop window. Mon Aug 24 20:55:22 1998 Berend Reitsma <berend at asset-control dot com> * [controls/menu.c] Menus created with SetMenuItemInfo and InsertMenuItem should work now. Sun Aug 23 23:23:23 1998 Alex Korobka <korobka@ams.sunysb.edu> * [controls/combo.c] Added CB_GETITEMHEIGHT. * [windows/winpos.c] WM_NCHITTEST, SWP_FRAMECHANGED bugfixes. Sat Aug 22 21:15:29 1998 Alex Priem <alexp@sci.kun.nl> * [files/profile.c] [include/windows.h] Added GetPrivateProfileSectionNames[AW],GetPrivateProfileSectionW, GetPrivateProfileStructW, GetProfileSectionW, WriteProfileSection[AW], WritePrivateProfileStructW.
1284 lines
35 KiB
C
1284 lines
35 KiB
C
/*
|
|
* Thread safe wrappers around Xlib calls.
|
|
* This file was generated automatically by tools/make_X11wrappers
|
|
* DO NOT EDIT!
|
|
*/
|
|
|
|
#include <X11/Xlib.h>
|
|
#include "x11drv.h"
|
|
#include "debug.h"
|
|
|
|
XFontStruct * TSXLoadQueryFont(Display* a0, const char* a1)
|
|
{
|
|
XFontStruct * r;
|
|
TRACE(x11, "Call XLoadQueryFont\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XLoadQueryFont(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XLoadQueryFont\n");
|
|
return r;
|
|
}
|
|
|
|
XModifierKeymap * TSXGetModifierMapping(Display* a0)
|
|
{
|
|
XModifierKeymap * r;
|
|
TRACE(x11, "Call XGetModifierMapping\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetModifierMapping(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetModifierMapping\n");
|
|
return r;
|
|
}
|
|
|
|
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)
|
|
{
|
|
XImage * r;
|
|
TRACE(x11, "Call XCreateImage\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreateImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreateImage\n");
|
|
return r;
|
|
}
|
|
|
|
XImage * TSXGetImage(Display* a0, Drawable a1, int a2, int a3, unsigned int a4, unsigned int a5, unsigned long a6, int a7)
|
|
{
|
|
XImage * r;
|
|
TRACE(x11, "Call XGetImage\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetImage(a0, a1, a2, a3, a4, a5, a6, a7);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetImage\n");
|
|
return r;
|
|
}
|
|
|
|
Display * TSXOpenDisplay(const char* a0)
|
|
{
|
|
Display * r;
|
|
TRACE(x11, "Call XOpenDisplay\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XOpenDisplay(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XOpenDisplay\n");
|
|
return r;
|
|
}
|
|
|
|
void TSXrmInitialize(void)
|
|
{
|
|
TRACE(x11, "Call XrmInitialize\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
XrmInitialize();
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XrmInitialize\n");
|
|
}
|
|
|
|
char * TSXGetAtomName(Display* a0, Atom a1)
|
|
{
|
|
char * r;
|
|
TRACE(x11, "Call XGetAtomName\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetAtomName(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetAtomName\n");
|
|
return r;
|
|
}
|
|
|
|
char * TSXKeysymToString(KeySym a0)
|
|
{
|
|
char * r;
|
|
TRACE(x11, "Call XKeysymToString\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XKeysymToString(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XKeysymToString\n");
|
|
return r;
|
|
}
|
|
|
|
Atom TSXInternAtom(Display* a0, const char* a1, int a2)
|
|
{
|
|
Atom r;
|
|
TRACE(x11, "Call XInternAtom\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XInternAtom(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XInternAtom\n");
|
|
return r;
|
|
}
|
|
|
|
Colormap TSXCopyColormapAndFree(Display* a0, Colormap a1)
|
|
{
|
|
Colormap r;
|
|
TRACE(x11, "Call XCopyColormapAndFree\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCopyColormapAndFree(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCopyColormapAndFree\n");
|
|
return r;
|
|
}
|
|
|
|
Colormap TSXCreateColormap(Display* a0, Window a1, Visual* a2, int a3)
|
|
{
|
|
Colormap r;
|
|
TRACE(x11, "Call XCreateColormap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreateColormap(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreateColormap\n");
|
|
return r;
|
|
}
|
|
|
|
Cursor TSXCreatePixmapCursor(Display* a0, Pixmap a1, Pixmap a2, XColor* a3, XColor* a4, unsigned int a5, unsigned int a6)
|
|
{
|
|
Cursor r;
|
|
TRACE(x11, "Call XCreatePixmapCursor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreatePixmapCursor(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreatePixmapCursor\n");
|
|
return r;
|
|
}
|
|
|
|
Cursor TSXCreateFontCursor(Display* a0, unsigned int a1)
|
|
{
|
|
Cursor r;
|
|
TRACE(x11, "Call XCreateFontCursor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreateFontCursor(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreateFontCursor\n");
|
|
return r;
|
|
}
|
|
|
|
GC TSXCreateGC(Display* a0, Drawable a1, unsigned long a2, XGCValues* a3)
|
|
{
|
|
GC r;
|
|
TRACE(x11, "Call XCreateGC\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreateGC(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreateGC\n");
|
|
return r;
|
|
}
|
|
|
|
Pixmap TSXCreatePixmap(Display* a0, Drawable a1, unsigned int a2, unsigned int a3, unsigned int a4)
|
|
{
|
|
Pixmap r;
|
|
TRACE(x11, "Call XCreatePixmap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreatePixmap(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreatePixmap\n");
|
|
return r;
|
|
}
|
|
|
|
Pixmap TSXCreateBitmapFromData(Display* a0, Drawable a1, const char* a2, unsigned int a3, unsigned int a4)
|
|
{
|
|
Pixmap r;
|
|
TRACE(x11, "Call XCreateBitmapFromData\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreateBitmapFromData(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreateBitmapFromData\n");
|
|
return r;
|
|
}
|
|
|
|
Window TSXGetSelectionOwner(Display* a0, Atom a1)
|
|
{
|
|
Window r;
|
|
TRACE(x11, "Call XGetSelectionOwner\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetSelectionOwner(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetSelectionOwner\n");
|
|
return r;
|
|
}
|
|
|
|
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)
|
|
{
|
|
Window r;
|
|
TRACE(x11, "Call XCreateWindow\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCreateWindow(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCreateWindow\n");
|
|
return r;
|
|
}
|
|
|
|
char ** TSXListFonts(Display* a0, const char* a1, int a2, int* a3)
|
|
{
|
|
char ** r;
|
|
TRACE(x11, "Call XListFonts\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XListFonts(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XListFonts\n");
|
|
return r;
|
|
}
|
|
|
|
KeySym TSXKeycodeToKeysym(Display* a0, unsigned int a1, int a2)
|
|
{
|
|
KeySym r;
|
|
TRACE(x11, "Call XKeycodeToKeysym\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XKeycodeToKeysym(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XKeycodeToKeysym\n");
|
|
return r;
|
|
}
|
|
|
|
KeySym TSXLookupKeysym(XKeyEvent* a0, int a1)
|
|
{
|
|
KeySym r;
|
|
TRACE(x11, "Call XLookupKeysym\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XLookupKeysym(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XLookupKeysym\n");
|
|
return r;
|
|
}
|
|
|
|
KeySym * TSXGetKeyboardMapping(Display* a0, unsigned int a1, int a2, int* a3)
|
|
{
|
|
KeySym * r;
|
|
TRACE(x11, "Call XGetKeyboardMapping\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetKeyboardMapping(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetKeyboardMapping\n");
|
|
return r;
|
|
}
|
|
|
|
char * TSXResourceManagerString(Display* a0)
|
|
{
|
|
char * r;
|
|
TRACE(x11, "Call XResourceManagerString\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XResourceManagerString(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XResourceManagerString\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXInitThreads(void)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XInitThreads\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XInitThreads();
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XInitThreads\n");
|
|
return r;
|
|
}
|
|
|
|
int * TSXListDepths(Display* a0, int a1, int* a2)
|
|
{
|
|
int * r;
|
|
TRACE(x11, "Call XListDepths\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XListDepths(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XListDepths\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXReconfigureWMWindow(Display* a0, Window a1, int a2, unsigned int a3, XWindowChanges* a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XReconfigureWMWindow\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XReconfigureWMWindow(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XReconfigureWMWindow\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetWMProtocols(Display* a0, Window a1, Atom* a2, int a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetWMProtocols\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetWMProtocols(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetWMProtocols\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetTransientForHint(Display* a0, Window a1, Window a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetTransientForHint\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetTransientForHint(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetTransientForHint\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXActivateScreenSaver(Display* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XActivateScreenSaver\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XActivateScreenSaver(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XActivateScreenSaver\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXAllocColor(Display* a0, Colormap a1, XColor* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XAllocColor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XAllocColor(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XAllocColor\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXAllocColorCells(Display* a0, Colormap a1, int a2, unsigned long* a3, unsigned int a4, unsigned long* a5, unsigned int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XAllocColorCells\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XAllocColorCells(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XAllocColorCells\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXBell(Display* a0, int a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XBell\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XBell(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XBell\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXChangeGC(Display* a0, GC a1, unsigned long a2, XGCValues* a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XChangeGC\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XChangeGC(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XChangeGC\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXChangeKeyboardControl(Display* a0, unsigned long a1, XKeyboardControl* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XChangeKeyboardControl\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XChangeKeyboardControl(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XChangeKeyboardControl\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXChangeProperty(Display* a0, Window a1, Atom a2, Atom a3, int a4, int a5, const unsigned char* a6, int a7)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XChangeProperty\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XChangeProperty(a0, a1, a2, a3, a4, a5, a6, a7);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XChangeProperty\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXChangeWindowAttributes(Display* a0, Window a1, unsigned long a2, XSetWindowAttributes* a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XChangeWindowAttributes\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XChangeWindowAttributes(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XChangeWindowAttributes\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXCheckTypedWindowEvent(Display* a0, Window a1, int a2, XEvent* a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XCheckTypedWindowEvent\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCheckTypedWindowEvent(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCheckTypedWindowEvent\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXCheckWindowEvent(Display* a0, Window a1, long a2, XEvent* a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XCheckWindowEvent\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCheckWindowEvent(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCheckWindowEvent\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXConvertSelection(Display* a0, Atom a1, Atom a2, Atom a3, Window a4, Time a5)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XConvertSelection\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XConvertSelection(a0, a1, a2, a3, a4, a5);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XConvertSelection\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXCopyArea(Display* a0, Drawable a1, Drawable a2, GC a3, int a4, int a5, unsigned int a6, unsigned int a7, int a8, int a9)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XCopyArea\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCopyArea(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCopyArea\n");
|
|
return r;
|
|
}
|
|
|
|
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)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XCopyPlane\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XCopyPlane(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XCopyPlane\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDefineCursor(Display* a0, Window a1, Cursor a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDefineCursor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDefineCursor(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDefineCursor\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDestroyWindow(Display* a0, Window a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDestroyWindow\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDestroyWindow(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDestroyWindow\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDisplayKeycodes(Display* a0, int* a1, int* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDisplayKeycodes\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDisplayKeycodes(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDisplayKeycodes\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawArc\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawArc\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawLine(Display* a0, Drawable a1, GC a2, int a3, int a4, int a5, int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawLine\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawLine(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawLine\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawLines(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawLines\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawLines(a0, a1, a2, a3, a4, a5);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawLines\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawPoint(Display* a0, Drawable a1, GC a2, int a3, int a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawPoint\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawPoint(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawPoint\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawRectangle\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawRectangle(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawRectangle\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawSegments(Display* a0, Drawable a1, GC a2, XSegment* a3, int a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawSegments\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawSegments(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawSegments\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawString(Display* a0, Drawable a1, GC a2, int a3, int a4, const char* a5, int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawString\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawString(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawString\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXDrawText(Display* a0, Drawable a1, GC a2, int a3, int a4, XTextItem* a5, int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XDrawText\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XDrawText(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XDrawText\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFillArc(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFillArc\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFillArc(a0, a1, a2, a3, a4, a5, a6, a7, a8);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFillArc\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFillPolygon(Display* a0, Drawable a1, GC a2, XPoint* a3, int a4, int a5, int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFillPolygon\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFillPolygon(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFillPolygon\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFillRectangle(Display* a0, Drawable a1, GC a2, int a3, int a4, unsigned int a5, unsigned int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFillRectangle\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFillRectangle(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFillRectangle\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFlush(Display* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFlush\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFlush(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFlush\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFree(void* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFree\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFree(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFree\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeColormap(Display* a0, Colormap a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeColormap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeColormap(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeColormap\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeColors(Display* a0, Colormap a1, unsigned long* a2, int a3, unsigned long a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeColors\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeColors(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeColors\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeCursor(Display* a0, Cursor a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeCursor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeCursor(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeCursor\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeFont(Display* a0, XFontStruct* a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeFont\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeFont(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeFont\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeFontNames(char** a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeFontNames\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeFontNames(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeFontNames\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeGC(Display* a0, GC a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeGC\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeGC(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeGC\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreeModifiermap(XModifierKeymap* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreeModifiermap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreeModifiermap(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreeModifiermap\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXFreePixmap(Display* a0, Pixmap a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XFreePixmap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XFreePixmap(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XFreePixmap\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGetFontProperty(XFontStruct* a0, Atom a1, unsigned long* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetFontProperty\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetFontProperty(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetFontProperty\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGetGeometry(Display* a0, Drawable a1, Window* a2, int* a3, int* a4, unsigned int* a5, unsigned int* a6, unsigned int* a7, unsigned int* a8)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetGeometry\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetGeometry(a0, a1, a2, a3, a4, a5, a6, a7, a8);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetGeometry\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGetInputFocus(Display* a0, Window* a1, int* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetInputFocus\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetInputFocus(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetInputFocus\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGetKeyboardControl(Display* a0, XKeyboardState* a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetKeyboardControl\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetKeyboardControl(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetKeyboardControl\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGetScreenSaver(Display* a0, int* a1, int* a2, int* a3, int* a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetScreenSaver\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetScreenSaver(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetScreenSaver\n");
|
|
return r;
|
|
}
|
|
|
|
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)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetWindowProperty\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetWindowProperty(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetWindowProperty\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGetWindowAttributes(Display* a0, Window a1, XWindowAttributes* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGetWindowAttributes\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGetWindowAttributes(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGetWindowAttributes\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXGrabServer(Display* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XGrabServer\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XGrabServer(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XGrabServer\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXInstallColormap(Display* a0, Colormap a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XInstallColormap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XInstallColormap(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XInstallColormap\n");
|
|
return r;
|
|
}
|
|
|
|
KeyCode TSXKeysymToKeycode(Display* a0, KeySym a1)
|
|
{
|
|
KeyCode r;
|
|
TRACE(x11, "Call XKeysymToKeycode\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XKeysymToKeycode(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XKeysymToKeycode\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXMapWindow(Display* a0, Window a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XMapWindow\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XMapWindow(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XMapWindow\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXNextEvent(Display* a0, XEvent* a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XNextEvent\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XNextEvent(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XNextEvent\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXParseGeometry(const char* a0, int* a1, int* a2, unsigned int* a3, unsigned int* a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XParseGeometry\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XParseGeometry(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XParseGeometry\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXPending(Display* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XPending\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XPending(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XPending\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXPutBackEvent(Display* a0, XEvent* a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XPutBackEvent\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XPutBackEvent(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XPutBackEvent\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXPutImage(Display* a0, Drawable a1, GC a2, XImage* a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XPutImage\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XPutImage\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXQueryColor(Display* a0, Colormap a1, XColor* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XQueryColor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XQueryColor(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XQueryColor\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXQueryPointer(Display* a0, Window a1, Window* a2, Window* a3, int* a4, int* a5, int* a6, int* a7, unsigned int* a8)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XQueryPointer\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XQueryPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XQueryPointer\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4, unsigned int* a5)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XQueryTree\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XQueryTree(a0, a1, a2, a3, a4, a5);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XQueryTree\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXResetScreenSaver(Display* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XResetScreenSaver\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XResetScreenSaver(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XResetScreenSaver\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXRestackWindows(Display* a0, Window* a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XRestackWindows\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XRestackWindows(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XRestackWindows\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSendEvent(Display* a0, Window a1, int a2, long a3, XEvent* a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSendEvent\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSendEvent(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSendEvent\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetArcMode(Display* a0, GC a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetArcMode\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetArcMode(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetArcMode\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetBackground(Display* a0, GC a1, unsigned long a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetBackground\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetBackground(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetBackground\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetClipMask(Display* a0, GC a1, Pixmap a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetClipMask\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetClipMask(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetClipMask\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetClipOrigin(Display* a0, GC a1, int a2, int a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetClipOrigin\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetClipOrigin(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetClipOrigin\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetClipRectangles(Display* a0, GC a1, int a2, int a3, XRectangle* a4, int a5, int a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetClipRectangles\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetClipRectangles(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetClipRectangles\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetDashes(Display* a0, GC a1, int a2, const char* a3, int a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetDashes\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetDashes(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetDashes\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetFillStyle(Display* a0, GC a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetFillStyle\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetFillStyle(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetFillStyle\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetForeground(Display* a0, GC a1, unsigned long a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetForeground\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetForeground(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetForeground\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetFunction(Display* a0, GC a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetFunction\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetFunction(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetFunction\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetGraphicsExposures(Display* a0, GC a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetGraphicsExposures\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetGraphicsExposures(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetGraphicsExposures\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetIconName(Display* a0, Window a1, const char* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetIconName\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetIconName(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetIconName\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetInputFocus(Display* a0, Window a1, int a2, Time a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetInputFocus\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetInputFocus(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetInputFocus\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetLineAttributes(Display* a0, GC a1, unsigned int a2, int a3, int a4, int a5)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetLineAttributes\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetLineAttributes(a0, a1, a2, a3, a4, a5);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetLineAttributes\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetScreenSaver(Display* a0, int a1, int a2, int a3, int a4)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetScreenSaver\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetScreenSaver(a0, a1, a2, a3, a4);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetScreenSaver\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetSelectionOwner(Display* a0, Atom a1, Window a2, Time a3)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetSelectionOwner\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetSelectionOwner(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetSelectionOwner\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetSubwindowMode(Display* a0, GC a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetSubwindowMode\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetSubwindowMode(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetSubwindowMode\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSetWindowColormap(Display* a0, Window a1, Colormap a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSetWindowColormap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSetWindowColormap(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSetWindowColormap\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXStoreColor(Display* a0, Colormap a1, XColor* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XStoreColor\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XStoreColor(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XStoreColor\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXStoreName(Display* a0, Window a1, const char* a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XStoreName\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XStoreName(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XStoreName\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXSync(Display* a0, int a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XSync\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSync(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSync\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXTextExtents(XFontStruct* a0, const char* a1, int a2, int* a3, int* a4, int* a5, XCharStruct* a6)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XTextExtents\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XTextExtents(a0, a1, a2, a3, a4, a5, a6);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XTextExtents\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXTextWidth(XFontStruct* a0, const char* a1, int a2)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XTextWidth\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XTextWidth(a0, a1, a2);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XTextWidth\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXUngrabServer(Display* a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XUngrabServer\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XUngrabServer(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XUngrabServer\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXUninstallColormap(Display* a0, Colormap a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XUninstallColormap\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XUninstallColormap(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XUninstallColormap\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXUnmapWindow(Display* a0, Window a1)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XUnmapWindow\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XUnmapWindow(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XUnmapWindow\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXWarpPointer(Display* a0, Window a1, Window a2, int a3, int a4, unsigned int a5, unsigned int a6, int a7, int a8)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XWarpPointer\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XWarpPointer(a0, a1, a2, a3, a4, a5, a6, a7, a8);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XWarpPointer\n");
|
|
return r;
|
|
}
|
|
|
|
XIM TSXOpenIM(Display* a0, struct _XrmHashBucketRec* a1, char* a2, char* a3)
|
|
{
|
|
XIM r;
|
|
TRACE(x11, "Call XOpenIM\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XOpenIM(a0, a1, a2, a3);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XOpenIM\n");
|
|
return r;
|
|
}
|
|
|
|
int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
|
|
{
|
|
int (*r)(Display *);
|
|
TRACE(x11, "Call XSynchronize\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XSynchronize(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XSynchronize\n");
|
|
return r;
|
|
}
|
|
|
|
extern void _XInitImageFuncPtrs(XImage *);
|
|
|
|
void TS_XInitImageFuncPtrs(XImage *a0)
|
|
{
|
|
TRACE(x11, "Call _XInitImageFuncPtrs\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
_XInitImageFuncPtrs(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret _XInitImageFuncPtrs\n");
|
|
}
|
|
|