mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 15:33:37 +00:00
Converted to the new debug interface.
This commit is contained in:
parent
9d35bb8295
commit
ded196cb13
|
@ -107,7 +107,7 @@ END
|
|||
|
||||
$pre_file
|
||||
$x11_incl#include <X11/$extensions_dir$name.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -391,13 +391,13 @@ sub raw_output_fn {
|
|||
# print OUTH "#define $fn_name TS$fn_name\n";
|
||||
print OUTC "{\n";
|
||||
print OUTC " $resultdecl;\n" if $resultdecl;
|
||||
print OUTC " TRACE(x11, \"Call $fn_name\\n\");\n";
|
||||
print OUTC " TRACE(\"Call $fn_name\\n\");\n";
|
||||
print OUTC " EnterCriticalSection( &X11DRV_CritSection );\n";
|
||||
print OUTC " ";
|
||||
print OUTC "r = " if $resultdecl;
|
||||
print OUTC "$fn_name($actuals);\n";
|
||||
print OUTC " LeaveCriticalSection( &X11DRV_CritSection );\n";
|
||||
print OUTC " TRACE(x11, \"Ret $fn_name\\n\");\n";
|
||||
print OUTC " TRACE(\"Ret $fn_name\\n\");\n";
|
||||
print OUTC " return r;\n" if $resultdecl;
|
||||
print OUTC "}\n";
|
||||
$want{$fn_name} = 2;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/xf86dga.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -20,99 +20,99 @@ DEFAULT_DEBUG_CHANNEL(x11)
|
|||
Bool TSXF86DGAQueryVersion(Display*a0,int*a1,int*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86DGAQueryVersion\n");
|
||||
TRACE("Call XF86DGAQueryVersion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAQueryVersion(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAQueryVersion\n");
|
||||
TRACE("Ret XF86DGAQueryVersion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86DGAQueryExtension(Display*a0,int*a1,int*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86DGAQueryExtension\n");
|
||||
TRACE("Call XF86DGAQueryExtension\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAQueryExtension(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAQueryExtension\n");
|
||||
TRACE("Ret XF86DGAQueryExtension\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGAGetVideo(Display*a0,int a1,char**a2,int*a3,int*a4,int*a5)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGAGetVideo\n");
|
||||
TRACE("Call XF86DGAGetVideo\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAGetVideo(a0,a1,a2,a3,a4,a5);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAGetVideo\n");
|
||||
TRACE("Ret XF86DGAGetVideo\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGADirectVideo(Display*a0,int a1,int a2)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGADirectVideo\n");
|
||||
TRACE("Call XF86DGADirectVideo\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGADirectVideo(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGADirectVideo\n");
|
||||
TRACE("Ret XF86DGADirectVideo\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGAGetViewPortSize(Display*a0,int a1,int *a2,int *a3)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGAGetViewPortSize\n");
|
||||
TRACE("Call XF86DGAGetViewPortSize\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAGetViewPortSize(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAGetViewPortSize\n");
|
||||
TRACE("Ret XF86DGAGetViewPortSize\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGASetViewPort(Display*a0,int a1,int a2,int a3)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGASetViewPort\n");
|
||||
TRACE("Call XF86DGASetViewPort\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGASetViewPort(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGASetViewPort\n");
|
||||
TRACE("Ret XF86DGASetViewPort\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGAInstallColormap(Display*a0,int a1,Colormap a2)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGAInstallColormap\n");
|
||||
TRACE("Call XF86DGAInstallColormap\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAInstallColormap(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAInstallColormap\n");
|
||||
TRACE("Ret XF86DGAInstallColormap\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGAQueryDirectVideo(Display*a0,int a1,int *a2)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGAQueryDirectVideo\n");
|
||||
TRACE("Call XF86DGAQueryDirectVideo\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAQueryDirectVideo(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAQueryDirectVideo\n");
|
||||
TRACE("Ret XF86DGAQueryDirectVideo\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86DGAViewPortChanged(Display*a0,int a1,int a2)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86DGAViewPortChanged\n");
|
||||
TRACE("Call XF86DGAViewPortChanged\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86DGAViewPortChanged(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86DGAViewPortChanged\n");
|
||||
TRACE("Ret XF86DGAViewPortChanged\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -23,154 +23,154 @@ DEFAULT_DEBUG_CHANNEL(x11)
|
|||
Bool TSXF86VidModeQueryVersion(Display*a0,int*a1,int*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeQueryVersion\n");
|
||||
TRACE("Call XF86VidModeQueryVersion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeQueryVersion(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeQueryVersion\n");
|
||||
TRACE("Ret XF86VidModeQueryVersion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeQueryExtension(Display*a0,int*a1,int*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeQueryExtension\n");
|
||||
TRACE("Call XF86VidModeQueryExtension\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeQueryExtension(a0,a2,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeQueryExtension\n");
|
||||
TRACE("Ret XF86VidModeQueryExtension\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeGetModeLine(Display*a0,int a1,int*a2,XF86VidModeModeLine*a3)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeGetModeLine\n");
|
||||
TRACE("Call XF86VidModeGetModeLine\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeGetModeLine(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeGetModeLine\n");
|
||||
TRACE("Ret XF86VidModeGetModeLine\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeGetAllModeLines(Display*a0,int a1,int*a2,XF86VidModeModeInfo***a3)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeGetAllModeLines\n");
|
||||
TRACE("Call XF86VidModeGetAllModeLines\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeGetAllModeLines(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeGetAllModeLines\n");
|
||||
TRACE("Ret XF86VidModeGetAllModeLines\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeAddModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2,XF86VidModeModeInfo*a3)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeAddModeLine\n");
|
||||
TRACE("Call XF86VidModeAddModeLine\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeAddModeLine(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeAddModeLine\n");
|
||||
TRACE("Ret XF86VidModeAddModeLine\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeDeleteModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeDeleteModeLine\n");
|
||||
TRACE("Call XF86VidModeDeleteModeLine\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeDeleteModeLine(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeDeleteModeLine\n");
|
||||
TRACE("Ret XF86VidModeDeleteModeLine\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeModModeLine(Display*a0,int a1,XF86VidModeModeLine*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeModModeLine\n");
|
||||
TRACE("Call XF86VidModeModModeLine\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeModModeLine(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeModModeLine\n");
|
||||
TRACE("Ret XF86VidModeModModeLine\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXF86VidModeValidateModeLine(Display*a0,int a1,XF86VidModeModeInfo*a2)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XF86VidModeValidateModeLine\n");
|
||||
TRACE("Call XF86VidModeValidateModeLine\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeValidateModeLine(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeValidateModeLine\n");
|
||||
TRACE("Ret XF86VidModeValidateModeLine\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeSwitchMode(Display*a0,int a1,int a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeSwitchMode\n");
|
||||
TRACE("Call XF86VidModeSwitchMode\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeSwitchMode(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeSwitchMode\n");
|
||||
TRACE("Ret XF86VidModeSwitchMode\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeSwitchToMode(Display*a0,int a1,XF86VidModeModeInfo*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeSwitchToMode\n");
|
||||
TRACE("Call XF86VidModeSwitchToMode\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeSwitchToMode(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeSwitchToMode\n");
|
||||
TRACE("Ret XF86VidModeSwitchToMode\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeLockModeSwitch(Display*a0,int a1,int a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeLockModeSwitch\n");
|
||||
TRACE("Call XF86VidModeLockModeSwitch\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeLockModeSwitch(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeLockModeSwitch\n");
|
||||
TRACE("Ret XF86VidModeLockModeSwitch\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeGetMonitor(Display*a0,int a1,XF86VidModeMonitor*a2)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeGetMonitor\n");
|
||||
TRACE("Call XF86VidModeGetMonitor\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeGetMonitor(a0,a1,a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeGetMonitor\n");
|
||||
TRACE("Ret XF86VidModeGetMonitor\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeGetViewPort(Display*a0,int a1,int*a2,int*a3)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeGetViewPort\n");
|
||||
TRACE("Call XF86VidModeGetViewPort\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeGetViewPort(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeGetViewPort\n");
|
||||
TRACE("Ret XF86VidModeGetViewPort\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXF86VidModeSetViewPort(Display*a0,int a1,int a2,int a3)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XF86VidModeSetViewPort\n");
|
||||
TRACE("Call XF86VidModeSetViewPort\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XF86VidModeSetViewPort(a0,a1,a2,a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XF86VidModeSetViewPort\n");
|
||||
TRACE("Ret XF86VidModeSetViewPort\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
474
tsx11/ts_xlib.c
474
tsx11/ts_xlib.c
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,7 @@
|
|||
#ifdef HAVE_LIBXXPM
|
||||
|
||||
#include <X11/xpm.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -19,22 +19,22 @@ DEFAULT_DEBUG_CHANNEL(x11)
|
|||
int TSXpmCreatePixmapFromData(Display *a0, Drawable a1, char **a2, Pixmap *a3, Pixmap *a4, XpmAttributes *a5)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XpmCreatePixmapFromData\n");
|
||||
TRACE("Call XpmCreatePixmapFromData\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XpmCreatePixmapFromData(a0, a1, a2, a3, a4, a5);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XpmCreatePixmapFromData\n");
|
||||
TRACE("Ret XpmCreatePixmapFromData\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXpmAttributesSize(void)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XpmAttributesSize\n");
|
||||
TRACE("Call XpmAttributesSize\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XpmAttributesSize();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XpmAttributesSize\n");
|
||||
TRACE("Ret XpmAttributesSize\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xresource.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -19,63 +19,63 @@ DEFAULT_DEBUG_CHANNEL(x11)
|
|||
XrmQuark TSXrmUniqueQuark(void)
|
||||
{
|
||||
XrmQuark r;
|
||||
TRACE(x11, "Call XrmUniqueQuark\n");
|
||||
TRACE("Call XrmUniqueQuark\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XrmUniqueQuark();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XrmUniqueQuark\n");
|
||||
TRACE("Ret XrmUniqueQuark\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXrmGetResource(XrmDatabase a0, const char* a1, const char* a2, char** a3, XrmValue* a4)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XrmGetResource\n");
|
||||
TRACE("Call XrmGetResource\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XrmGetResource(a0, a1, a2, a3, a4);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XrmGetResource\n");
|
||||
TRACE("Ret XrmGetResource\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XrmDatabase TSXrmGetFileDatabase(const char* a0)
|
||||
{
|
||||
XrmDatabase r;
|
||||
TRACE(x11, "Call XrmGetFileDatabase\n");
|
||||
TRACE("Call XrmGetFileDatabase\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XrmGetFileDatabase(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XrmGetFileDatabase\n");
|
||||
TRACE("Ret XrmGetFileDatabase\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XrmDatabase TSXrmGetStringDatabase(const char* a0)
|
||||
{
|
||||
XrmDatabase r;
|
||||
TRACE(x11, "Call XrmGetStringDatabase\n");
|
||||
TRACE("Call XrmGetStringDatabase\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XrmGetStringDatabase(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XrmGetStringDatabase\n");
|
||||
TRACE("Ret XrmGetStringDatabase\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
void TSXrmMergeDatabases(XrmDatabase a0, XrmDatabase* a1)
|
||||
{
|
||||
TRACE(x11, "Call XrmMergeDatabases\n");
|
||||
TRACE("Call XrmMergeDatabases\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
XrmMergeDatabases(a0, a1);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XrmMergeDatabases\n");
|
||||
TRACE("Ret XrmMergeDatabases\n");
|
||||
}
|
||||
|
||||
void TSXrmParseCommand(XrmDatabase* a0, XrmOptionDescList a1, int a2, const char* a3, int* a4, char** a5)
|
||||
{
|
||||
TRACE(x11, "Call XrmParseCommand\n");
|
||||
TRACE("Call XrmParseCommand\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
XrmParseCommand(a0, a1, a2, a3, a4, a5);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XrmParseCommand\n");
|
||||
TRACE("Ret XrmParseCommand\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/extensions/XShm.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -20,99 +20,99 @@ DEFAULT_DEBUG_CHANNEL(x11)
|
|||
Bool TSXShmQueryExtension(Display *a0)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XShmQueryExtension\n");
|
||||
TRACE("Call XShmQueryExtension\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmQueryExtension(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmQueryExtension\n");
|
||||
TRACE("Ret XShmQueryExtension\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
|
||||
{
|
||||
Bool r;
|
||||
TRACE(x11, "Call XShmQueryVersion\n");
|
||||
TRACE("Call XShmQueryVersion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmQueryVersion(a0, a1, a2, a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmQueryVersion\n");
|
||||
TRACE("Ret XShmQueryVersion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXShmPixmapFormat(Display *a0)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XShmPixmapFormat\n");
|
||||
TRACE("Call XShmPixmapFormat\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmPixmapFormat(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmPixmapFormat\n");
|
||||
TRACE("Ret XShmPixmapFormat\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XShmAttach\n");
|
||||
TRACE("Call XShmAttach\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmAttach(a0, a1);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmAttach\n");
|
||||
TRACE("Ret XShmAttach\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XShmDetach\n");
|
||||
TRACE("Call XShmDetach\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmDetach(a0, a1);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmDetach\n");
|
||||
TRACE("Ret XShmDetach\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXShmPutImage(Display *a0, Drawable a1, GC a2, XImage *a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9, Bool a10)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XShmPutImage\n");
|
||||
TRACE("Call XShmPutImage\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmPutImage\n");
|
||||
TRACE("Ret XShmPutImage\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
|
||||
{
|
||||
Status r;
|
||||
TRACE(x11, "Call XShmGetImage\n");
|
||||
TRACE("Call XShmGetImage\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmGetImage(a0, a1, a2, a3, a4, a5);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmGetImage\n");
|
||||
TRACE("Ret XShmGetImage\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
|
||||
{
|
||||
XImage * r;
|
||||
TRACE(x11, "Call XShmCreateImage\n");
|
||||
TRACE("Call XShmCreateImage\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmCreateImage(a0, a1, a2, a3, a4, a5, a6, a7);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmCreateImage\n");
|
||||
TRACE("Ret XShmCreateImage\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
|
||||
{
|
||||
Pixmap r;
|
||||
TRACE(x11, "Call XShmCreatePixmap\n");
|
||||
TRACE("Call XShmCreatePixmap\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShmCreatePixmap(a0, a1, a2, a3, a4, a5, a6);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShmCreatePixmap\n");
|
||||
TRACE("Ret XShmCreatePixmap\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
138
tsx11/ts_xutil.c
138
tsx11/ts_xutil.c
|
@ -12,7 +12,7 @@
|
|||
#include <X11/Xlib.h>
|
||||
#include <X11/Xresource.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "x11drv.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(x11)
|
||||
|
@ -20,370 +20,370 @@ DEFAULT_DEBUG_CHANNEL(x11)
|
|||
XClassHint * TSXAllocClassHint(void)
|
||||
{
|
||||
XClassHint * r;
|
||||
TRACE(x11, "Call XAllocClassHint\n");
|
||||
TRACE("Call XAllocClassHint\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XAllocClassHint();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XAllocClassHint\n");
|
||||
TRACE("Ret XAllocClassHint\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XSizeHints * TSXAllocSizeHints(void)
|
||||
{
|
||||
XSizeHints * r;
|
||||
TRACE(x11, "Call XAllocSizeHints\n");
|
||||
TRACE("Call XAllocSizeHints\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XAllocSizeHints();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XAllocSizeHints\n");
|
||||
TRACE("Ret XAllocSizeHints\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XWMHints * TSXAllocWMHints(void)
|
||||
{
|
||||
XWMHints * r;
|
||||
TRACE(x11, "Call XAllocWMHints\n");
|
||||
TRACE("Call XAllocWMHints\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XAllocWMHints();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XAllocWMHints\n");
|
||||
TRACE("Ret XAllocWMHints\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXClipBox(Region a0, XRectangle* a1)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XClipBox\n");
|
||||
TRACE("Call XClipBox\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XClipBox(a0, a1);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XClipBox\n");
|
||||
TRACE("Ret XClipBox\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Region TSXCreateRegion(void)
|
||||
{
|
||||
Region r;
|
||||
TRACE(x11, "Call XCreateRegion\n");
|
||||
TRACE("Call XCreateRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XCreateRegion();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XCreateRegion\n");
|
||||
TRACE("Ret XCreateRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXDeleteContext(Display* a0, XID a1, XContext a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XDeleteContext\n");
|
||||
TRACE("Call XDeleteContext\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XDeleteContext(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XDeleteContext\n");
|
||||
TRACE("Ret XDeleteContext\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXDestroyRegion(Region a0)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XDestroyRegion\n");
|
||||
TRACE("Call XDestroyRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XDestroyRegion(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XDestroyRegion\n");
|
||||
TRACE("Ret XDestroyRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXEmptyRegion(Region a0)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XEmptyRegion\n");
|
||||
TRACE("Call XEmptyRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XEmptyRegion(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XEmptyRegion\n");
|
||||
TRACE("Ret XEmptyRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXEqualRegion(Region a0, Region a1)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XEqualRegion\n");
|
||||
TRACE("Call XEqualRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XEqualRegion(a0, a1);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XEqualRegion\n");
|
||||
TRACE("Ret XEqualRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXFindContext(Display* a0, XID a1, XContext a2, XPointer* a3)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XFindContext\n");
|
||||
TRACE("Call XFindContext\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XFindContext(a0, a1, a2, a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XFindContext\n");
|
||||
TRACE("Ret XFindContext\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XVisualInfo * TSXGetVisualInfo(Display* a0, long a1, XVisualInfo* a2, int* a3)
|
||||
{
|
||||
XVisualInfo * r;
|
||||
TRACE(x11, "Call XGetVisualInfo\n");
|
||||
TRACE("Call XGetVisualInfo\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XGetVisualInfo(a0, a1, a2, a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XGetVisualInfo\n");
|
||||
TRACE("Ret XGetVisualInfo\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXGetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, long* a3, Atom a4)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XGetWMSizeHints\n");
|
||||
TRACE("Call XGetWMSizeHints\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XGetWMSizeHints(a0, a1, a2, a3, a4);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XGetWMSizeHints\n");
|
||||
TRACE("Ret XGetWMSizeHints\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXIntersectRegion(Region a0, Region a1, Region a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XIntersectRegion\n");
|
||||
TRACE("Call XIntersectRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XIntersectRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XIntersectRegion\n");
|
||||
TRACE("Ret XIntersectRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXLookupString(XKeyEvent* a0, char* a1, int a2, KeySym* a3, XComposeStatus* a4)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XLookupString\n");
|
||||
TRACE("Call XLookupString\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XLookupString(a0, a1, a2, a3, a4);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XLookupString\n");
|
||||
TRACE("Ret XLookupString\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXOffsetRegion(Region a0, int a1, int a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XOffsetRegion\n");
|
||||
TRACE("Call XOffsetRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XOffsetRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XOffsetRegion\n");
|
||||
TRACE("Ret XOffsetRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXPointInRegion(Region a0, int a1, int a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XPointInRegion\n");
|
||||
TRACE("Call XPointInRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XPointInRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XPointInRegion\n");
|
||||
TRACE("Ret XPointInRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
Region TSXPolygonRegion(XPoint* a0, int a1, int a2)
|
||||
{
|
||||
Region r;
|
||||
TRACE(x11, "Call XPolygonRegion\n");
|
||||
TRACE("Call XPolygonRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XPolygonRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XPolygonRegion\n");
|
||||
TRACE("Ret XPolygonRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXRectInRegion(Region a0, int a1, int a2, unsigned int a3, unsigned int a4)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XRectInRegion\n");
|
||||
TRACE("Call XRectInRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XRectInRegion(a0, a1, a2, a3, a4);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XRectInRegion\n");
|
||||
TRACE("Ret XRectInRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XSaveContext\n");
|
||||
TRACE("Call XSaveContext\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XSaveContext(a0, a1, a2, a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSaveContext\n");
|
||||
TRACE("Ret XSaveContext\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXSetClassHint(Display* a0, Window a1, XClassHint* a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XSetClassHint\n");
|
||||
TRACE("Call XSetClassHint\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XSetClassHint(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSetClassHint\n");
|
||||
TRACE("Ret XSetClassHint\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXSetWMHints(Display* a0, Window a1, XWMHints* a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XSetWMHints\n");
|
||||
TRACE("Call XSetWMHints\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XSetWMHints(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSetWMHints\n");
|
||||
TRACE("Ret XSetWMHints\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
void TSXSetWMProperties(Display* a0, Window a1, XTextProperty* a2, XTextProperty* a3, char** a4, int a5, XSizeHints* a6, XWMHints* a7, XClassHint* a8)
|
||||
{
|
||||
TRACE(x11, "Call XSetWMProperties\n");
|
||||
TRACE("Call XSetWMProperties\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
XSetWMProperties(a0, a1, a2, a3, a4, a5, a6, a7, a8);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSetWMProperties\n");
|
||||
TRACE("Ret XSetWMProperties\n");
|
||||
}
|
||||
|
||||
void TSXSetWMSizeHints(Display* a0, Window a1, XSizeHints* a2, Atom a3)
|
||||
{
|
||||
TRACE(x11, "Call XSetWMSizeHints\n");
|
||||
TRACE("Call XSetWMSizeHints\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
XSetWMSizeHints(a0, a1, a2, a3);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSetWMSizeHints\n");
|
||||
TRACE("Ret XSetWMSizeHints\n");
|
||||
}
|
||||
|
||||
int TSXSetRegion(Display* a0, GC a1, Region a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XSetRegion\n");
|
||||
TRACE("Call XSetRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XSetRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSetRegion\n");
|
||||
TRACE("Ret XSetRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXShrinkRegion(Region a0, int a1, int a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XShrinkRegion\n");
|
||||
TRACE("Call XShrinkRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XShrinkRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XShrinkRegion\n");
|
||||
TRACE("Ret XShrinkRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXStringListToTextProperty(char** a0, int a1, XTextProperty* a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XStringListToTextProperty\n");
|
||||
TRACE("Call XStringListToTextProperty\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XStringListToTextProperty(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XStringListToTextProperty\n");
|
||||
TRACE("Ret XStringListToTextProperty\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXSubtractRegion(Region a0, Region a1, Region a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XSubtractRegion\n");
|
||||
TRACE("Call XSubtractRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XSubtractRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSubtractRegion\n");
|
||||
TRACE("Ret XSubtractRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXUnionRectWithRegion(XRectangle* a0, Region a1, Region a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XUnionRectWithRegion\n");
|
||||
TRACE("Call XUnionRectWithRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XUnionRectWithRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XUnionRectWithRegion\n");
|
||||
TRACE("Ret XUnionRectWithRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXUnionRegion(Region a0, Region a1, Region a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XUnionRegion\n");
|
||||
TRACE("Call XUnionRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XUnionRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XUnionRegion\n");
|
||||
TRACE("Ret XUnionRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXXorRegion(Region a0, Region a1, Region a2)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XXorRegion\n");
|
||||
TRACE("Call XXorRegion\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XXorRegion(a0, a1, a2);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XXorRegion\n");
|
||||
TRACE("Ret XXorRegion\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXDestroyImage(struct _XImage *a0)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XDestroyImage\n");
|
||||
TRACE("Call XDestroyImage\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XDestroyImage(a0);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XDestroyImage\n");
|
||||
TRACE("Ret XDestroyImage\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
struct _XImage * TSXSubImage(struct _XImage *a0, int a1, int a2, unsigned int a3, unsigned int a4)
|
||||
{
|
||||
struct _XImage * r;
|
||||
TRACE(x11, "Call XSubImage\n");
|
||||
TRACE("Call XSubImage\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XSubImage(a0, a1, a2, a3, a4);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XSubImage\n");
|
||||
TRACE("Ret XSubImage\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
int TSXAddPixel(struct _XImage *a0, long a1)
|
||||
{
|
||||
int r;
|
||||
TRACE(x11, "Call XAddPixel\n");
|
||||
TRACE("Call XAddPixel\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XAddPixel(a0, a1);
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XAddPixel\n");
|
||||
TRACE("Ret XAddPixel\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
XContext TSXUniqueContext(void)
|
||||
{
|
||||
XContext r;
|
||||
TRACE(x11, "Call XUniqueContext\n");
|
||||
TRACE("Call XUniqueContext\n");
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
r = XUniqueContext();
|
||||
LeaveCriticalSection( &X11DRV_CritSection );
|
||||
TRACE(x11, "Ret XUniqueContext\n");
|
||||
TRACE("Ret XUniqueContext\n");
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue