Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ea69f8ee
Commit
ea69f8ee
authored
May 10, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some #ifdefs HAVE_X11_XLIB_H where appropriate.
parent
8877c669
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
24 deletions
+23
-24
ts_xlib.h
include/ts_xlib.h
+2
-1
ts_xresource.h
include/ts_xresource.h
+2
-0
ts_xutil.h
include/ts_xutil.h
+2
-0
make_X11wrappers
tools/make_X11wrappers
+2
-4
X11_calls
tsx11/X11_calls
+0
-1
ts_xlib.c
tsx11/ts_xlib.c
+2
-9
ts_xresource.c
tsx11/ts_xresource.c
+2
-0
ts_xutil.c
tsx11/ts_xutil.c
+11
-9
No files found.
include/ts_xlib.h
View file @
ea69f8ee
...
...
@@ -12,6 +12,7 @@
# error You must include config.h to use this header
#endif
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
...
...
@@ -147,7 +148,7 @@ extern int TSXUnmapWindow(Display*, Window);
extern
int
TSXWarpPointer
(
Display
*
,
Window
,
Window
,
int
,
int
,
unsigned
int
,
unsigned
int
,
int
,
int
);
extern
XIM
TSXOpenIM
(
Display
*
,
struct
_XrmHashBucketRec
*
,
char
*
,
char
*
);
extern
int
(
*
TSXSynchronize
(
Display
*
,
Bool
))(
Display
*
);
extern
void
TS_XInitImageFuncPtrs
(
XImage
*
);
#endif
/* defined(HAVE_X11_XLIB_H) */
#endif
/* __WINE_TS_XLIB_H */
include/ts_xresource.h
View file @
ea69f8ee
...
...
@@ -12,6 +12,7 @@
# error You must include config.h to use this header
#endif
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#include <X11/Xresource.h>
...
...
@@ -26,5 +27,6 @@ extern XrmDatabase TSXrmGetStringDatabase(const char*);
extern
void
TSXrmMergeDatabases
(
XrmDatabase
,
XrmDatabase
*
);
extern
void
TSXrmParseCommand
(
XrmDatabase
*
,
XrmOptionDescList
,
int
,
const
char
*
,
int
*
,
char
**
);
#endif
/* defined(HAVE_X11_XLIB_H) */
#endif
/* __WINE_TS_XRESOURCE_H */
include/ts_xutil.h
View file @
ea69f8ee
...
...
@@ -12,6 +12,7 @@
# error You must include config.h to use this header
#endif
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#include <X11/Xresource.h>
...
...
@@ -56,5 +57,6 @@ extern int TSXAddPixel(struct _XImage *, long);
extern
XContext
TSXUniqueContext
(
void
);
extern
int
TSXDeleteContext
(
Display
*
,
XID
,
XContext
);
#endif
/* defined(HAVE_X11_XLIB_H) */
#endif
/* __WINE_TS_XUTIL_H */
tools/make_X11wrappers
View file @
ea69f8ee
...
...
@@ -57,8 +57,8 @@ foreach $name (@dolist) {
$x11_incl
=
""
;
$extensions_dir
=
""
;
$pre_file
=
""
;
$post_file
=
""
;
$pre_file
=
"
#ifdef HAVE_X11_XLIB_H\n
"
;
$post_file
=
"
#endif /* defined(HAVE_X11_XLIB_H) */\n
"
;
$inc_name
=
$name
;
if
(
$name
eq
"Xutil"
||
$name
eq
"Xresource"
||
$name
eq
"XShm"
)
{
$x11_incl
=
"#include <X11/Xlib.h>\n"
;
...
...
@@ -388,8 +388,6 @@ output_fn_short("XvImage *", "XvShmCreateImage", "Display*", "XvPortID", "int",
"int (*TSXSynchronize(Display *, Bool))(Display *)"
,
"int (*TSXSynchronize(Display *a0, Bool a1))(Display *)"
,
"a0, a1"
);
print
OUTC
"\nextern void _XInitImageFuncPtrs(XImage *);\n"
;
output_fn
(
"_XInitImageFuncPtrs"
,
"void"
,
"XImage *"
,
"XImage *a0"
,
"a0"
);
}
elsif
(
$name
eq
"Xutil"
)
{
output_fn
(
"XDestroyImage"
,
"int"
,
"struct _XImage *"
,
"struct _XImage *a0"
,
"a0"
);
...
...
tsx11/X11_calls
View file @
ea69f8ee
...
...
@@ -185,7 +185,6 @@ XrmInitialize
XrmMergeDatabases
XrmParseCommand
XrmUniqueQuark
_XInitImageFuncPtrs
XF86DGAQueryExtension
XF86DGASetViewPort
XF86DGAInstallColormap
...
...
tsx11/ts_xlib.c
View file @
ea69f8ee
...
...
@@ -6,6 +6,7 @@
#include "config.h"
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
...
...
@@ -1171,13 +1172,5 @@ int (*TSXSynchronize(Display *a0, Bool a1))(Display *)
return
r
;
}
extern
void
_XInitImageFuncPtrs
(
XImage
*
);
void
TS_XInitImageFuncPtrs
(
XImage
*
a0
)
{
wine_tsx11_lock
();
_XInitImageFuncPtrs
(
a0
);
wine_tsx11_unlock
();
}
#endif
/* defined(HAVE_X11_XLIB_H) */
tsx11/ts_xresource.c
View file @
ea69f8ee
...
...
@@ -6,6 +6,7 @@
#include "config.h"
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#include <X11/Xresource.h>
...
...
@@ -63,4 +64,5 @@ void TSXrmParseCommand(XrmDatabase* a0, XrmOptionDescList a1, int a2, const ch
wine_tsx11_unlock
();
}
#endif
/* defined(HAVE_X11_XLIB_H) */
tsx11/ts_xutil.c
View file @
ea69f8ee
...
...
@@ -6,6 +6,7 @@
#include "config.h"
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#include <X11/Xresource.h>
...
...
@@ -59,15 +60,6 @@ Region TSXCreateRegion(void)
return
r
;
}
int
TSXDeleteContext
(
Display
*
a0
,
XID
a1
,
XContext
a2
)
{
int
r
;
wine_tsx11_lock
();
r
=
XDeleteContext
(
a0
,
a1
,
a2
);
wine_tsx11_unlock
();
return
r
;
}
int
TSXDestroyRegion
(
Region
a0
)
{
int
r
;
...
...
@@ -325,4 +317,14 @@ XContext TSXUniqueContext(void)
return
r
;
}
int
TSXDeleteContext
(
Display
*
a0
,
XID
a1
,
XContext
a2
)
{
int
r
;
wine_tsx11_lock
();
r
=
XDeleteContext
(
a0
,
a1
,
a2
);
wine_tsx11_unlock
();
return
r
;
}
#endif
/* defined(HAVE_X11_XLIB_H) */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment