Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
399931a2
Commit
399931a2
authored
Dec 08, 1998
by
Stephen Crowley
Committed by
Alexandre Julliard
Dec 08, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added fullscreen DGA support.
parent
0e40582d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
453 additions
and
77 deletions
+453
-77
configure
configure
+116
-73
configure.in
configure.in
+3
-1
ddraw.c
graphics/ddraw.c
+38
-2
acconfig.h
include/acconfig.h
+3
-0
config.h.in
include/config.h.in
+3
-0
ts_xf86vmode.h
include/ts_xf86vmode.h
+30
-0
make_X11wrappers
tools/make_X11wrappers
+78
-1
Makefile.in
tsx11/Makefile.in
+1
-0
X11_calls
tsx11/X11_calls
+14
-0
ts_xf86vmode.c
tsx11/ts_xf86vmode.c
+167
-0
No files found.
configure
View file @
399931a2
...
...
@@ -23,7 +23,7 @@ ac_help="$ac_help
ac_help
=
"
$ac_help
--disable-trace compile out TRACE messages"
ac_help
=
"
$ac_help
--with-ncurses compile in the ncurses terminal"
--with-ncurses compile in the ncurses terminal
(EXPERIMENTAL)
"
ac_help
=
"
$ac_help
--without-reentrant-x compile for use with non-reentrant X libraries"
ac_help
=
"
$ac_help
...
...
@@ -2373,6 +2373,49 @@ else
echo
"
$ac_t
""no"
1>&6
fi
echo
$ac_n
"checking for XF86VidModeQueryExtension in -lXxf86vm""...
$ac_c
"
1>&6
echo
"configure:2378: checking for XF86VidModeQueryExtension in -lXxf86vm"
>
&5
ac_lib_var
=
`
echo
Xxf86vm
'_'
XF86VidModeQueryExtension |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lXxf86vm
$X_LIBS
-lXext -lX11
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 2386 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char XF86VidModeQueryExtension();
int main() {
XF86VidModeQueryExtension()
; return 0; }
EOF
if
{
(
eval echo
configure:2397:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=no"
fi
rm
-f
conftest
*
LIBS
=
"
$ac_save_LIBS
"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_LIBXXF86VM 1
EOF
X_PRE_LIBS
=
"
$X_PRE_LIBS
-lXxf86vm"
else
echo
"
$ac_t
""no"
1>&6
fi
else
XLIB
=
""
X_CFLAGS
=
""
...
...
@@ -2383,17 +2426,17 @@ for ac_hdr in sys/soundcard.h machine/soundcard.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:2
387
: checking for
$ac_hdr
"
>
&5
echo
"configure:2
430
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
392
"configure"
#line 2
435
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:2
397
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:2
440
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -2421,12 +2464,12 @@ done
echo
$ac_n
"checking "
for
Open Sound System
"""...
$ac_c
"
1>&6
echo
"configure:24
25
: checking "
for
Open Sound System
""
>
&5
echo
"configure:24
68
: checking "
for
Open Sound System
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_opensoundsystem
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 24
30
"configure"
#line 24
73
"configure"
#include "confdefs.h"
#ifdef HAVE_SYS_SOUNDCARD_H
...
...
@@ -2446,7 +2489,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:24
50
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:24
93
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_opensoundsystem
=
"yes"
else
...
...
@@ -2470,12 +2513,12 @@ fi
echo
$ac_n
"checking "
for
union semun
"""...
$ac_c
"
1>&6
echo
"configure:2
474
: checking "
for
union semun
""
>
&5
echo
"configure:2
517
: checking "
for
union semun
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_union_semun
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
479
"configure"
#line 2
522
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/sem.h>
...
...
@@ -2483,7 +2526,7 @@ int main() {
union semun foo
; return 0; }
EOF
if
{
(
eval echo
configure:2
487
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:2
530
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_union_semun
=
"yes"
else
...
...
@@ -2511,7 +2554,7 @@ if test "x${GCC}" = "xyes"
then
CFLAGS
=
"
$CFLAGS
-Wall"
echo
$ac_n
"checking "
for
gcc strength-reduce bug
"""...
$ac_c
"
1>&6
echo
"configure:25
15
: checking "
for
gcc strength-reduce bug
""
>
&5
echo
"configure:25
58
: checking "
for
gcc strength-reduce bug
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_gcc_strength_bug
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2519,7 +2562,7 @@ else
ac_cv_c_gcc_strength_bug
=
"yes"
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 25
23
"configure"
#line 25
66
"configure"
#include "confdefs.h"
int main(void) {
...
...
@@ -2530,7 +2573,7 @@ int main(void) {
exit( Array[1] != -2 );
}
EOF
if
{
(
eval echo
configure:25
34
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:25
77
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_gcc_strength_bug
=
"no"
else
...
...
@@ -2553,7 +2596,7 @@ fi
echo
$ac_n
"checking "
whether external symbols need an underscore prefix
"""...
$ac_c
"
1>&6
echo
"configure:2
557
: checking "
whether external symbols need an underscore prefix
""
>
&5
echo
"configure:2
600
: checking "
whether external symbols need an underscore prefix
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_extern_prefix
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2565,14 +2608,14 @@ _ac_test:
.long 0
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
569
"configure"
#line 2
612
"configure"
#include "confdefs.h"
extern int ac_test;
int main() {
if (ac_test) return 1
; return 0; }
EOF
if
{
(
eval echo
configure:2
576
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:2
619
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
ac_cv_c_extern_prefix
=
"yes"
else
...
...
@@ -2596,7 +2639,7 @@ fi
echo
$ac_n
"checking "
whether assembler accepts .string
"""...
$ac_c
"
1>&6
echo
"configure:26
00
: checking "
whether assembler accepts .string
""
>
&5
echo
"configure:26
43
: checking "
whether assembler accepts .string
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_asm_string
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2606,14 +2649,14 @@ cat > conftest_asm.s <<EOF
.string "test"
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 26
10
"configure"
#line 26
53
"configure"
#include "confdefs.h"
int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:26
17
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:26
60
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
ac_cv_c_asm_string
=
"yes"
else
...
...
@@ -2640,21 +2683,21 @@ DLLFLAGS=""
if
test
"
$LIB_TARGET
"
=
"libwine.so.1.0"
then
echo
$ac_n
"checking "
whether we can build a dll
"""...
$ac_c
"
1>&6
echo
"configure:26
44
: checking "
whether we can build a dll
""
>
&5
echo
"configure:26
87
: checking "
whether we can build a dll
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_dll
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
saved_cflags
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-fPIC -shared -Wl,-soname,conftest.so.1.0"
cat
>
conftest.
$ac_ext
<<
EOF
#line 26
51
"configure"
#line 26
94
"configure"
#include "confdefs.h"
int main() {
return 1
; return 0; }
EOF
if
{
(
eval echo
configure:2
658
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:2
701
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
ac_cv_c_dll
=
"yes"
else
...
...
@@ -2680,7 +2723,7 @@ fi
echo
$ac_n
"checking "
for
reentrant libc
"""...
$ac_c
"
1>&6
echo
"configure:2
684
: checking "
for
reentrant libc
""
>
&5
echo
"configure:2
727
: checking "
for
reentrant libc
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_libc_reentrant
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2688,14 +2731,14 @@ else
wine_cv_libc_reentrant
=
yes
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
692
"configure"
#line 2
735
"configure"
#include "confdefs.h"
int myerrno = 0;
char buf[256];
int *__errno_location(){return &myerrno;}
main(){connect(0,buf,255); exit(!myerrno);}
EOF
if
{
(
eval echo
configure:2
699
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:2
742
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
wine_cv_libc_reentrant
=
yes
else
...
...
@@ -2720,7 +2763,7 @@ fi
echo
$ac_n
"checking "
for
reentrant X libraries
"""...
$ac_c
"
1>&6
echo
"configure:27
24
: checking "
for
reentrant X libraries
""
>
&5
echo
"configure:27
67
: checking "
for
reentrant X libraries
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_x_reentrant
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -2765,12 +2808,12 @@ fi
for
ac_func
in
clone getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:2
769
: checking for
$ac_func
"
>
&5
echo
"configure:2
812
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
774
"configure"
#line 2
817
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -2793,7 +2836,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:2
797
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:2
840
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -2821,17 +2864,17 @@ for ac_hdr in wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:28
25
: checking for
$ac_hdr
"
>
&5
echo
"configure:28
68
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 28
30
"configure"
#line 28
73
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:28
35
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:28
78
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -2858,12 +2901,12 @@ fi
done
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
"configure:2
862
: checking whether stat file-mode macros are broken"
>
&5
echo
"configure:2
905
: checking whether stat file-mode macros are broken"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stat_broken
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 2
867
"configure"
#line 2
910
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
...
...
@@ -2914,12 +2957,12 @@ EOF
fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:29
18
: checking for working const"
>
&5
echo
"configure:29
61
: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 29
23
"configure"
#line 29
66
"configure"
#include "confdefs.h"
int main() {
...
...
@@ -2968,7 +3011,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:
2972
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:
3015
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -2989,12 +3032,12 @@ EOF
fi
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:
2993
: checking for ANSI C header files"
>
&5
echo
"configure:
3036
: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line
2998
"configure"
#line
3041
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -3002,7 +3045,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:30
06
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:30
49
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -3019,7 +3062,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 30
23
"configure"
#line 30
66
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -3037,7 +3080,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 30
41
"configure"
#line 30
84
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -3058,7 +3101,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
062
"configure"
#line 3
105
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -3069,7 +3112,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:3
073
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:3
116
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -3093,12 +3136,12 @@ EOF
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:3
097
: checking for size_t"
>
&5
echo
"configure:3
140
: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 31
02
"configure"
#line 31
45
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -3126,7 +3169,7 @@ EOF
fi
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:31
30
: checking size of long long"
>
&5
echo
"configure:31
73
: checking size of long long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3134,7 +3177,7 @@ else
ac_cv_sizeof_long_long
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 31
38
"configure"
#line 31
81
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -3145,7 +3188,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:31
49
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:31
92
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_long_long
=
`
cat
conftestval
`
else
...
...
@@ -3168,7 +3211,7 @@ EOF
if
test
$ac_cv_func_sendmsg
=
no
;
then
echo
$ac_n
"checking for sendmsg in -lsocket""...
$ac_c
"
1>&6
echo
"configure:3
172
: checking for sendmsg in -lsocket"
>
&5
echo
"configure:3
215
: checking for sendmsg in -lsocket"
>
&5
ac_lib_var
=
`
echo
socket
'_'
sendmsg |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -3176,7 +3219,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lsocket
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
180
"configure"
#line 3
223
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -3187,7 +3230,7 @@ int main() {
sendmsg()
; return 0; }
EOF
if
{
(
eval echo
configure:3
191
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
234
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -3220,12 +3263,12 @@ fi
if
test
"
$ac_cv_header_sys_vfs_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether sys/vfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:32
24
: checking "
whether sys/vfs.h defines statfs
""
>
&5
echo
"configure:32
67
: checking "
whether sys/vfs.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_vfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 32
29
"configure"
#line 32
72
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -3242,7 +3285,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:32
46
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:32
89
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_vfs_has_statfs
=
yes
else
...
...
@@ -3269,12 +3312,12 @@ fi
if
test
"
$ac_cv_header_sys_statfs_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether sys/statfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:3
273
: checking "
whether sys/statfs.h defines statfs
""
>
&5
echo
"configure:3
316
: checking "
whether sys/statfs.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_statfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
278
"configure"
#line 3
321
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -3289,7 +3332,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:3
293
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
336
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_statfs_has_statfs
=
yes
else
...
...
@@ -3316,12 +3359,12 @@ fi
if
test
"
$ac_cv_header_sys_mount_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether sys/mount.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:33
20
: checking "
whether sys/mount.h defines statfs
""
>
&5
echo
"configure:33
63
: checking "
whether sys/mount.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_mount_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 33
25
"configure"
#line 33
68
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -3336,7 +3379,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:33
40
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:33
83
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_mount_has_statfs
=
yes
else
...
...
@@ -3362,7 +3405,7 @@ fi
echo
$ac_n
"checking "
for
statfs.f_bfree
"""...
$ac_c
"
1>&6
echo
"configure:3
366
: checking "
for
statfs.f_bfree
""
>
&5
echo
"configure:3
409
: checking "
for
statfs.f_bfree
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bfree
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3371,7 +3414,7 @@ else
wine_cv_statfs_bfree
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
375
"configure"
#line 3
418
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -3398,7 +3441,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:34
02
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:34
45
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bfree
=
yes
else
...
...
@@ -3422,7 +3465,7 @@ EOF
fi
echo
$ac_n
"checking "
for
statfs.f_bavail
"""...
$ac_c
"
1>&6
echo
"configure:34
26
: checking "
for
statfs.f_bavail
""
>
&5
echo
"configure:34
69
: checking "
for
statfs.f_bavail
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bavail
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3431,7 +3474,7 @@ else
wine_cv_statfs_bavail
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 34
35
"configure"
#line 34
78
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -3458,7 +3501,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:3
462
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
505
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bavail
=
yes
else
...
...
@@ -3483,7 +3526,7 @@ fi
echo
$ac_n
"checking "
for
working sigaltstack
"""...
$ac_c
"
1>&6
echo
"configure:3
487
: checking "
for
working sigaltstack
""
>
&5
echo
"configure:3
530
: checking "
for
working sigaltstack
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_working_sigaltstack
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -3492,7 +3535,7 @@ else
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
496
"configure"
#line 3
539
"configure"
#include "confdefs.h"
#include <stdio.h>
...
...
@@ -3530,7 +3573,7 @@ else
}
EOF
if
{
(
eval echo
configure:35
34
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:35
77
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_working_sigaltstack
=
"yes"
else
...
...
@@ -3557,12 +3600,12 @@ fi
echo
$ac_n
"checking "
for
msg_accrights
in
struct msghdr
"""...
$ac_c
"
1>&6
echo
"configure:3
561
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
echo
"configure:3
604
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_msg_accrights
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
566
"configure"
#line 3
609
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -3570,7 +3613,7 @@ int main() {
struct msghdr hdr; hdr.msg_accrights=0
; return 0; }
EOF
if
{
(
eval echo
configure:3
574
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:3
617
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_msg_accrights
=
"yes"
else
...
...
configure.in
View file @
399931a2
...
...
@@ -44,7 +44,7 @@ AC_ARG_ENABLE(trace,
[if test "$enableval" = "no"; then TRACE_MSGS="no"; fi])
AC_ARG_WITH(ncurses,
[ --with-ncurses compile in the ncurses terminal],
[ --with-ncurses compile in the ncurses terminal
(EXPERIMENTAL)
],
[if test "$withval" = "yes"; then LIBS="$LIBS -lncurses"; AC_DEFINE(WINE_NCURSES) fi])
AC_ARG_WITH(reentrant-x,
...
...
@@ -106,6 +106,8 @@ then
AC_CHECK_LIB(Xext,XShmQueryExtension,AC_DEFINE(HAVE_LIBXXSHM),,$X_LIBS -lXext -lX11)
dnl Check for XFree86 DGA extension
AC_CHECK_LIB(Xxf86dga,XF86DGAQueryExtension,AC_DEFINE(HAVE_LIBXXF86DGA) X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga",,$X_LIBS -lXext -lX11)
dnl Check for XFree86 VMODE extension
AC_CHECK_LIB(Xxf86vm,XF86VidModeQueryExtension,AC_DEFINE(HAVE_LIBXXF86VM) X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm",,$X_LIBS -lXext -lX11)
else
XLIB=""
X_CFLAGS=""
...
...
graphics/ddraw.c
View file @
399931a2
...
...
@@ -20,6 +20,15 @@
#include <sys/signal.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_LIBXXF86VM
/* X is retarted and insists on declaring INT32, INT16 etc in Xmd.h, this is a crude hack to get around it */
/* Anywhere ts_xf86vmode.h is included you must define LONG64 also, see include/wintypes.h */
#define LONG64
#include "ts_xf86vmode.h"
#undef LONG64
#endif
#include "windows.h"
#include "winerror.h"
...
...
@@ -1958,7 +1967,7 @@ static HRESULT WINAPI DGA_IDirectDraw_SetDisplayMode(
LPDIRECTDRAW
this
,
DWORD
width
,
DWORD
height
,
DWORD
depth
)
{
#ifdef HAVE_LIBXXF86DGA
int
i
,
*
depths
,
dep
count
;
int
i
,
*
depths
,
depcount
,
mode_
count
;
TRACE
(
ddraw
,
"(%p)->(%ld,%ld,%ld)
\n
"
,
this
,
width
,
height
,
depth
);
...
...
@@ -1984,6 +1993,33 @@ static HRESULT WINAPI DGA_IDirectDraw_SetDisplayMode(
this
->
e
.
dga
.
fb_height
=
height
;
_common_IDirectDraw_SetDisplayMode
(
this
);
#ifdef HAVE_LIBXXF86VM
{
XF86VidModeModeInfo
**
all_modes
,
*
vidmode
;
/* set fullscreen mode */
/* do we need to save the old video mode and restore it when we exit? */
TSXF86VidModeGetAllModeLines
(
display
,
DefaultScreen
(
display
),
&
mode_count
,
&
all_modes
);
for
(
i
=
0
;
i
<
mode_count
;
i
++
)
{
if
(
all_modes
[
i
]
->
hdisplay
==
width
&&
all_modes
[
i
]
->
vdisplay
==
height
)
{
vidmode
=
(
XF86VidModeModeInfo
*
)
malloc
(
sizeof
(
XF86VidModeModeInfo
));
*
vidmode
=
*
(
all_modes
[
i
]);
break
;
}
else
TSXFree
(
all_modes
[
i
]
->
private
);
}
TSXFree
(
all_modes
);
if
(
!
vidmode
)
WARN
(
ddraw
,
"Fullscreen mode not available!
\n
"
);
if
(
vidmode
)
TSXF86VidModeSwitchToMode
(
display
,
DefaultScreen
(
display
),
vidmode
);
}
#endif
/* FIXME: this function OVERWRITES several signal handlers.
* can we save them? and restore them later? In a way that
* it works for the library too?
...
...
@@ -2675,7 +2711,7 @@ HRESULT WINAPI DGA_DirectDrawCreate( LPDIRECTDRAW *lplpDD, LPUNKNOWN pUnkOuter)
#ifdef HAVE_LIBXXF86DGA
int
memsize
,
banksize
,
width
,
major
,
minor
,
flags
,
height
;
char
*
addr
;
int
fd
;
int
fd
;
/* Must be able to access /dev/mem for DGA extensions to work, root is not neccessary. --stephenc */
if
((
fd
=
open
(
"/dev/mem"
,
O_RDWR
))
!=
-
1
)
...
...
include/acconfig.h
View file @
399931a2
...
...
@@ -21,6 +21,9 @@
/* Define if you have the X Shm extension */
#undef HAVE_LIBXXSHM
/* Define if you have the Xxf86vm library */
#undef HAVE_LIBXXF86VM
/* Define if you have the Open Sound system. */
#undef HAVE_OSS
...
...
include/config.h.in
View file @
399931a2
...
...
@@ -33,6 +33,9 @@
/* Define if you have the X Shm extension */
#undef HAVE_LIBXXSHM
/* Define if you have the Xxf86vm library */
#undef HAVE_LIBXXF86VM
/* Define if you have the Open Sound system. */
#undef HAVE_OSS
...
...
include/ts_xf86vmode.h
0 → 100644
View file @
399931a2
/*
* Thread safe wrappers around xf86vmode calls.
* Always include this file instead of <X11/xf86vmode.h>.
* This file was generated automatically by tools/make_X11wrappers
*
* Copyright 1998 Kristian Nielsen
*/
#ifndef __WINE_TSXF86VMODE_H
#define __WINE_TSXF86VMODE_H
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
extern
Bool
TSXF86VidModeQueryVersion
(
Display
*
,
int
*
,
int
*
);
extern
Bool
TSXF86VidModeQueryExtension
(
Display
*
,
int
*
,
int
*
);
extern
Bool
TSXF86VidModeGetModeLine
(
Display
*
,
int
,
int
*
,
XF86VidModeModeLine
*
);
extern
Bool
TSXF86VidModeGetAllModeLines
(
Display
*
,
int
,
int
*
,
XF86VidModeModeInfo
***
);
extern
Bool
TSXF86VidModeAddModeLine
(
Display
*
,
int
,
XF86VidModeModeInfo
*
,
XF86VidModeModeInfo
*
);
extern
Bool
TSXF86VidModeDeleteModeLine
(
Display
*
,
int
,
XF86VidModeModeInfo
*
);
extern
Bool
TSXF86VidModeModModeLine
(
Display
*
,
int
,
XF86VidModeModeLine
*
);
extern
Status
TSXF86VidModeValidateModeLine
(
Display
*
,
int
,
XF86VidModeModeInfo
*
);
extern
Bool
TSXF86VidModeSwitchMode
(
Display
*
,
int
,
int
);
extern
Bool
TSXF86VidModeSwitchToMode
(
Display
*
,
int
,
XF86VidModeModeInfo
*
);
extern
Bool
TSXF86VidModeLockModeSwitch
(
Display
*
,
int
,
int
);
extern
Bool
TSXF86VidModeGetMonitor
(
Display
*
,
int
,
XF86VidModeMonitor
*
);
extern
Bool
TSXF86VidModeGetViewPort
(
Display
*
,
int
,
int
*
,
int
*
);
extern
Bool
TSXF86VidModeSetViewPort
(
Display
*
,
int
,
int
,
int
);
#endif
/* __WINE_TSXF86VMODE_H */
tools/make_X11wrappers
View file @
399931a2
...
...
@@ -17,7 +17,7 @@
$X11_include_dir
=
"/usr/X11R6/include"
;
$outdir
=
"tsx11"
;
$wantfile
=
"$outdir/X11_calls"
;
@dolist
=
(
"Xlib"
,
"Xresource"
,
"Xutil"
,
"xpm"
,
"XShm"
,
"xf86dga"
);
@dolist
=
(
"Xlib"
,
"Xresource"
,
"Xutil"
,
"xpm"
,
"XShm"
,
"xf86dga"
,
"xf86vmode"
);
# First read list of wanted function names.
...
...
@@ -60,6 +60,12 @@ foreach $name (@dolist) {
if
(
$name
eq
"XShm"
)
{
$extensions_dir
=
"extensions/"
;
}
if
(
$name
eq
"xf86vmode"
)
{
$x11_incl
=
"#include <X11/Xlib.h>\n"
;
$extensions_dir
=
"extensions/"
;
$pre_file
=
"#include \"config.h\"\n#ifdef HAVE_LIBXXF86VM\n"
;
$post_file
=
"#endif"
;
}
print
OUTH
<<END;
/*
...
...
@@ -170,6 +176,77 @@ END
"Display*a0,int a1,int a2"
,
"a0,a1,a2"
);
}
elsif
(
$name
eq
"xf86vmode"
)
{
output_fn
(
"XF86VidModeQueryVersion"
,
Bool
,
"Display*,int*,int*"
,
"Display*a0,int*a1,int*a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeQueryExtension"
,
Bool
,
"Display*,int*,int*"
,
"Display*a0,int*a1,int*a2"
,
"a0,a2,a2"
);
output_fn
(
"XF86VidModeGetModeLine"
,
Bool
,
"Display*,int,int*,XF86VidModeModeLine*"
,
"Display*a0,int a1,int*a2,XF86VidModeModeLine*a3"
,
"a0,a1,a2,a3"
);
output_fn
(
"XF86VidModeGetAllModeLines"
,
Bool
,
"Display*,int,int*,XF86VidModeModeInfo***"
,
"Display*a0,int a1,int*a2,XF86VidModeModeInfo***a3"
,
"a0,a1,a2,a3"
);
output_fn
(
"XF86VidModeAddModeLine"
,
Bool
,
"Display*,int,XF86VidModeModeInfo*,XF86VidModeModeInfo*"
,
"Display*a0,int a1,XF86VidModeModeInfo*a2,XF86VidModeModeInfo*a3"
,
"a0,a1,a2,a3"
);
output_fn
(
"XF86VidModeDeleteModeLine"
,
Bool
,
"Display*,int,XF86VidModeModeInfo*"
,
"Display*a0,int a1,XF86VidModeModeInfo*a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeModModeLine"
,
Bool
,
"Display*,int,XF86VidModeModeLine*"
,
"Display*a0,int a1,XF86VidModeModeLine*a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeValidateModeLine"
,
Status
,
"Display*,int,XF86VidModeModeInfo*"
,
"Display*a0,int a1,XF86VidModeModeInfo*a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeSwitchMode"
,
Bool
,
"Display*,int,int"
,
"Display*a0,int a1,int a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeSwitchToMode"
,
Bool
,
"Display*,int,XF86VidModeModeInfo*"
,
"Display*a0,int a1,XF86VidModeModeInfo*a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeLockModeSwitch"
,
Bool
,
"Display*,int,int"
,
"Display*a0,int a1,int a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeGetMonitor"
,
Bool
,
"Display*,int,XF86VidModeMonitor*"
,
"Display*a0,int a1,XF86VidModeMonitor*a2"
,
"a0,a1,a2"
);
output_fn
(
"XF86VidModeGetViewPort"
,
Bool
,
"Display*,int,int*,int*"
,
"Display*a0,int a1,int*a2,int*a3"
,
"a0,a1,a2,a3"
);
output_fn
(
"XF86VidModeSetViewPort"
,
Bool
,
"Display*,int,int,int"
,
"Display*a0,int a1,int a2,int a3"
,
"a0,a1,a2,a3"
);
}
else
{
open
(
IN
,
"echo \"$x11_incl#include <X11/$extensions_dir$name.h>\" | gcc -L$X11_include_dir -E - | grep -v '^[ \t]*\$'|"
)
||
die
"open"
;
...
...
tsx11/Makefile.in
View file @
399931a2
...
...
@@ -7,6 +7,7 @@ MODULE = tsx11
C_SRCS
=
\
ts_xf86dga.c
\
ts_xf86vmode.c
\
ts_xshm.c
\
ts_xlib.c
\
ts_xresource.c
\
...
...
tsx11/X11_calls
View file @
399931a2
...
...
@@ -179,3 +179,17 @@ XF86DGAQueryVersion
XF86DGAQueryDirectVideo
XF86DGAGetVideo
XF86DGAGetViewPortSize
XF86VidModeQueryVersion
XF86VidModeQueryExtension
XF86VidModeGetModeLine
XF86VidModeGetAllModeLines
XF86VidModeAddModeLine
XF86VidModeDeleteModeLine
XF86VidModeModModeLine
XF86VidModeValidateModeLine
XF86VidModeSwitchMode
XF86VidModeSwitchToMode
XF86VidModeLockModeSwitch
XF86VidModeGetMonitor
XF86VidModeGetViewPort
XF86VidModeSetViewPort
tsx11/ts_xf86vmode.c
0 → 100644
View file @
399931a2
/*
* Thread safe wrappers around xf86vmode calls.
* This file was generated automatically by tools/make_X11wrappers
* DO NOT EDIT!
*/
#include "config.h"
#ifdef HAVE_LIBXXF86VM
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
#include "x11drv.h"
#include "debug.h"
Bool
TSXF86VidModeQueryVersion
(
Display
*
a0
,
int
*
a1
,
int
*
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeQueryVersion
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeQueryVersion
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeQueryVersion
\n
"
);
return
r
;
}
Bool
TSXF86VidModeQueryExtension
(
Display
*
a0
,
int
*
a1
,
int
*
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeQueryExtension
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeQueryExtension
(
a0
,
a2
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeQueryExtension
\n
"
);
return
r
;
}
Bool
TSXF86VidModeGetModeLine
(
Display
*
a0
,
int
a1
,
int
*
a2
,
XF86VidModeModeLine
*
a3
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeGetModeLine
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeGetModeLine
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeGetModeLine
\n
"
);
return
r
;
}
Bool
TSXF86VidModeGetAllModeLines
(
Display
*
a0
,
int
a1
,
int
*
a2
,
XF86VidModeModeInfo
***
a3
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeGetAllModeLines
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeGetAllModeLines
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeGetAllModeLines
\n
"
);
return
r
;
}
Bool
TSXF86VidModeAddModeLine
(
Display
*
a0
,
int
a1
,
XF86VidModeModeInfo
*
a2
,
XF86VidModeModeInfo
*
a3
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeAddModeLine
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeAddModeLine
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeAddModeLine
\n
"
);
return
r
;
}
Bool
TSXF86VidModeDeleteModeLine
(
Display
*
a0
,
int
a1
,
XF86VidModeModeInfo
*
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeDeleteModeLine
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeDeleteModeLine
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeDeleteModeLine
\n
"
);
return
r
;
}
Bool
TSXF86VidModeModModeLine
(
Display
*
a0
,
int
a1
,
XF86VidModeModeLine
*
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeModModeLine
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeModModeLine
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeModModeLine
\n
"
);
return
r
;
}
Status
TSXF86VidModeValidateModeLine
(
Display
*
a0
,
int
a1
,
XF86VidModeModeInfo
*
a2
)
{
Status
r
;
TRACE
(
x11
,
"Call XF86VidModeValidateModeLine
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeValidateModeLine
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeValidateModeLine
\n
"
);
return
r
;
}
Bool
TSXF86VidModeSwitchMode
(
Display
*
a0
,
int
a1
,
int
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeSwitchMode
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeSwitchMode
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeSwitchMode
\n
"
);
return
r
;
}
Bool
TSXF86VidModeSwitchToMode
(
Display
*
a0
,
int
a1
,
XF86VidModeModeInfo
*
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeSwitchToMode
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeSwitchToMode
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeSwitchToMode
\n
"
);
return
r
;
}
Bool
TSXF86VidModeLockModeSwitch
(
Display
*
a0
,
int
a1
,
int
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeLockModeSwitch
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeLockModeSwitch
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeLockModeSwitch
\n
"
);
return
r
;
}
Bool
TSXF86VidModeGetMonitor
(
Display
*
a0
,
int
a1
,
XF86VidModeMonitor
*
a2
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeGetMonitor
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeGetMonitor
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeGetMonitor
\n
"
);
return
r
;
}
Bool
TSXF86VidModeGetViewPort
(
Display
*
a0
,
int
a1
,
int
*
a2
,
int
*
a3
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeGetViewPort
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeGetViewPort
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeGetViewPort
\n
"
);
return
r
;
}
Bool
TSXF86VidModeSetViewPort
(
Display
*
a0
,
int
a1
,
int
a2
,
int
a3
)
{
Bool
r
;
TRACE
(
x11
,
"Call XF86VidModeSetViewPort
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XF86VidModeSetViewPort
(
a0
,
a1
,
a2
,
a3
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XF86VidModeSetViewPort
\n
"
);
return
r
;
}
#endif
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