Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
d8e7cebd
Commit
d8e7cebd
authored
Jul 28, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Plain Diff
Merged Sunny's XRender changes from SDL-gsoc2010_xrender
parents
8d14ec12
b277b530
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1556 additions
and
313 deletions
+1556
-313
configure.in
configure.in
+67
-6
SDL_config.h.in
include/SDL_config.h.in
+7
-0
SDL_video.h
include/SDL_video.h
+1
-1
SDL_error.c
src/SDL_error.c
+2
-0
SDL_x11dyn.h
src/video/x11/SDL_x11dyn.h
+12
-0
SDL_x11render.c
src/video/x11/SDL_x11render.c
+1418
-305
SDL_x11sym.h
src/video/x11/SDL_x11sym.h
+40
-0
SDL_x11video.h
src/video/x11/SDL_x11video.h
+9
-1
No files found.
configure.in
View file @
d8e7cebd
...
@@ -1055,6 +1055,8 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ma
...
@@ -1055,6 +1055,8 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ma
xrandr_lib=[`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xrandr_lib=[`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xinput_lib=[`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xinput_lib=[`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xss_lib=[`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xss_lib=[`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xdamage_lib=[`find_lib "libXdamage.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
xfixes_lib=[`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
;;
;;
esac
esac
...
@@ -1128,16 +1130,13 @@ AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for ful
...
@@ -1128,16 +1130,13 @@ AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for ful
])
])
if test x$have_xrandr_h_hdr = xyes; then
if test x$have_xrandr_h_hdr = xyes; then
if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
echo "-- dynamic libXrender -> $xrender_lib"
echo "-- dynamic libXrandr -> $xrandr_lib"
echo "-- dynamic libXrandr -> $xrandr_lib"
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib")
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib")
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib")
definitely_enable_video_x11_xrandr=yes
definitely_enable_video_x11_xrandr=yes
else
else
AC_CHECK_LIB(Xrender, XRenderQueryExtension, have_xrender_lib=yes)
AC_CHECK_LIB(Xrandr, XRRQueryExtension, have_xrandr_lib=yes)
AC_CHECK_LIB(Xrandr, XRRQueryExtension, have_xrandr_lib=yes)
if test x$have_xr
ender_lib = xyes && test x$have_xr
andr_lib = xyes ; then
if test x$have_xrandr_lib = xyes ; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr
-lXrender
"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
definitely_enable_video_x11_xrandr=yes
definitely_enable_video_x11_xrandr=yes
fi
fi
fi
fi
...
@@ -1199,7 +1198,69 @@ AC_HELP_STRING([--enable-video-x11-scrnsaver], [enable X11 screensaver extension
...
@@ -1199,7 +1198,69 @@ AC_HELP_STRING([--enable-video-x11-scrnsaver], [enable X11 screensaver extension
if test x$definitely_enable_video_x11_scrnsaver = xyes; then
if test x$definitely_enable_video_x11_scrnsaver = xyes; then
AC_DEFINE(SDL_VIDEO_DRIVER_X11_SCRNSAVER)
AC_DEFINE(SDL_VIDEO_DRIVER_X11_SCRNSAVER)
fi
fi
AC_ARG_ENABLE(video-x11-xrender,
AC_HELP_STRING([--enable-video-x11-xrender], [enable X11 Xrender extension [[default=yes]]]),
, enable_video_x11_xrender=yes)
if test x$enable_video_x11_xrender = xyes; then
AC_CHECK_HEADER(X11/extensions/Xrender.h,
have_xrender_h_hdr=yes,
have_xrender_h_hdr=no,
[#include <X11/Xlib.h>
])
if test x$have_xrender_h_hdr = xyes; then
if test x$enable_x11_shared = xyes && test x$xrender_lib != x ; then
echo "-- dynamic libXrender -> $xrender_lib"
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib")
definitely_enable_video_x11_xrender=yes
else
AC_CHECK_LIB(Xrender, XRenderQueryExtension, have_xrender_lib=yes)
if test x$have_xrender_lib = xyes ; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrender"
definitely_enable_video_x11_xrender=yes
fi
fi
fi
fi
if test x$definitely_enable_video_x11_xrender = xyes; then
AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRENDER)
fi
AC_ARG_ENABLE(video-x11-xdamage-xfixes,
AC_HELP_STRING([--enable-video-x11-xdamage-xfixes], [enable X11 Xdamage and Xfixes extensions [[default=yes]]]),
, enable_video_x11_xdamage=yes)
if test x$enable_video_x11_xdamage = xyes && test x$definitely_enable_video_x11_xrender = xyes ; then
AC_CHECK_HEADER(X11/extensions/Xdamage.h,
have_xdamage_h_hdr=yes,
have_xdamage_h_hdr=no,
[#include <X11/Xlib.h>
])
AC_CHECK_HEADER(X11/extensions/Xfixes.h,
have_xfixes_h_hdr=yes,
have_xfixes_h_hdr=no,
[#include <X11/Xlib.h>
])
if test x$have_xdamage_h_hdr = xyes && test x$have_xfixes_h_hdr = xyes ; then
if test x$enable_x11_shared = xyes && test x$xdamage_lib != x && test x$xfixes_lib != x ; then
echo "-- dynamic libXdamage -> $xdamage_lib"
echo "-- dynamic libXfixes -> $xfixes_lib"
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XDAMAGE, "$xdamage_lib")
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES, "$xfixes_lib")
definitely_enable_video_x11_xdamage=yes
definitely_enable_video_x11_xfixes=yes
else
AC_CHECK_LIB(Xdamage, XDamageQueryExtension, have_xdamage_lib=yes)
AC_CHECK_LIB(Xfixes, XFixesQueryExtension, have_xfixes_lib=yes)
if test x$have_xdamage_lib = xyes && test x$have_xfixes_lib = xyes ; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXdamage -lXfixes"
definitely_enable_video_x11_xdamage=yes
definitely_enable_video_x11_xfixes=yes
fi
fi
fi
fi
if test x$definitely_enable_video_x11_xdamage = xyes && test x$definitely_enable_video_x11_xfixes = xyes ; then
AC_DEFINE(SDL_VIDEO_DRIVER_X11_XDAMAGE)
AC_DEFINE(SDL_VIDEO_DRIVER_X11_XFIXES)
fi
AC_ARG_ENABLE(render-x11,
AC_ARG_ENABLE(render-x11,
AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]),
AC_HELP_STRING([--enable-render-x11], [enable the X11 render driver [[default=yes]]]),
, enable_render_x11=yes)
, enable_render_x11=yes)
...
...
include/SDL_config.h.in
View file @
d8e7cebd
...
@@ -272,12 +272,19 @@
...
@@ -272,12 +272,19 @@
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XDAMAGE
#undef SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES
#undef SDL_VIDEO_DRIVER_X11_VIDMODE
#undef SDL_VIDEO_DRIVER_X11_VIDMODE
#undef SDL_VIDEO_DRIVER_X11_XINERAMA
#undef SDL_VIDEO_DRIVER_X11_XINERAMA
#undef SDL_VIDEO_DRIVER_X11_XRANDR
#undef SDL_VIDEO_DRIVER_X11_XRANDR
#undef SDL_VIDEO_DRIVER_X11_XINPUT
#undef SDL_VIDEO_DRIVER_X11_XINPUT
#undef SDL_VIDEO_DRIVER_X11_SCRNSAVER
#undef SDL_VIDEO_DRIVER_X11_SCRNSAVER
#undef SDL_VIDEO_DRIVER_X11_XV
#undef SDL_VIDEO_DRIVER_X11_XV
#undef SDL_VIDEO_DRIVER_X11_XRENDER
#undef SDL_VIDEO_DRIVER_X11_XDAMAGE
#undef SDL_VIDEO_DRIVER_X11_XFIXES
#undef SDL_VIDEO_RENDER_X11
#undef SDL_VIDEO_RENDER_D3D
#undef SDL_VIDEO_RENDER_D3D
#undef SDL_VIDEO_RENDER_GDI
#undef SDL_VIDEO_RENDER_GDI
...
...
include/SDL_video.h
View file @
d8e7cebd
...
@@ -189,7 +189,7 @@ typedef struct SDL_RendererInfo
...
@@ -189,7 +189,7 @@ typedef struct SDL_RendererInfo
Uint32
blend_modes
;
/**< A mask of supported blend modes */
Uint32
blend_modes
;
/**< A mask of supported blend modes */
Uint32
scale_modes
;
/**< A mask of supported scale modes */
Uint32
scale_modes
;
/**< A mask of supported scale modes */
Uint32
num_texture_formats
;
/**< The number of available texture formats */
Uint32
num_texture_formats
;
/**< The number of available texture formats */
Uint32
texture_formats
[
2
0
];
/**< The available texture formats */
Uint32
texture_formats
[
5
0
];
/**< The available texture formats */
int
max_texture_width
;
/**< The maximimum texture width */
int
max_texture_width
;
/**< The maximimum texture width */
int
max_texture_height
;
/**< The maximimum texture height */
int
max_texture_height
;
/**< The maximimum texture height */
}
SDL_RendererInfo
;
}
SDL_RendererInfo
;
...
...
src/SDL_error.c
View file @
d8e7cebd
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include "SDL_error.h"
#include "SDL_error.h"
#include "SDL_error_c.h"
#include "SDL_error_c.h"
/*#define DEBUG_ERROR*/
/* Routine to get the thread-specific error variable */
/* Routine to get the thread-specific error variable */
#if SDL_THREADS_DISABLED
#if SDL_THREADS_DISABLED
/* !!! FIXME: what does this comment mean? Victim of Search and Replace? */
/* !!! FIXME: what does this comment mean? Victim of Search and Replace? */
...
...
src/video/x11/SDL_x11dyn.h
View file @
d8e7cebd
...
@@ -52,6 +52,18 @@
...
@@ -52,6 +52,18 @@
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput.h>
#endif
#endif
#if SDL_VIDEO_DRIVER_X11_XRENDER
#include <X11/extensions/Xrender.h>
#endif
#if SDL_VIDEO_DRIVER_X11_XDAMAGE
#include <X11/extensions/Xdamage.h>
#endif
#if SDL_VIDEO_DRIVER_X11_XFIXES
#include <X11/extensions/Xfixes.h>
#endif
/*
/*
* When using the "dynamic X11" functionality, we duplicate all the Xlib
* When using the "dynamic X11" functionality, we duplicate all the Xlib
* symbols that would be referenced by SDL inside of SDL itself.
* symbols that would be referenced by SDL inside of SDL itself.
...
...
src/video/x11/SDL_x11render.c
View file @
d8e7cebd
This diff is collapsed.
Click to expand it.
src/video/x11/SDL_x11sym.h
View file @
d8e7cebd
...
@@ -156,6 +156,10 @@ SDL_X11_SYM(SDL_X11_XSynchronizeRetType,XSynchronize,(Display* a,Bool b),(a,b),r
...
@@ -156,6 +156,10 @@ SDL_X11_SYM(SDL_X11_XSynchronizeRetType,XSynchronize,(Display* a,Bool b),(a,b),r
SDL_X11_SYM
(
SDL_X11_XESetWireToEventRetType
,
XESetWireToEvent
,(
Display
*
a
,
int
b
,
SDL_X11_XESetWireToEventRetType
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
SDL_X11_XESetWireToEventRetType
,
XESetWireToEvent
,(
Display
*
a
,
int
b
,
SDL_X11_XESetWireToEventRetType
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
SDL_X11_XESetEventToWireRetType
,
XESetEventToWire
,(
Display
*
a
,
int
b
,
SDL_X11_XESetEventToWireRetType
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
SDL_X11_XESetEventToWireRetType
,
XESetEventToWire
,(
Display
*
a
,
int
b
,
SDL_X11_XESetEventToWireRetType
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
XExtensionErrorHandler
,
XSetExtensionErrorHandler
,(
XExtensionErrorHandler
a
),(
a
),
return
)
SDL_X11_SYM
(
XExtensionErrorHandler
,
XSetExtensionErrorHandler
,(
XExtensionErrorHandler
a
),(
a
),
return
)
SDL_X11_SYM
(
int
,
XFillRectangle
,(
Display
*
dpy
,
Drawable
d
,
GC
gc
,
int
x
,
int
y
,
unsigned
int
width
,
unsigned
int
height
),(
dpy
,
d
,
gc
,
x
,
y
,
width
,
height
),
return
)
SDL_X11_SYM
(
int
,
XSetBackground
,(
Display
*
dpy
,
GC
gc
,
unsigned
long
background
),(
dpy
,
gc
,
background
),
return
)
SDL_X11_SYM
(
Status
,
XInitImage
,(
XImage
*
image
),(
image
),
return
)
SDL_X11_SYM
(
int
,
XSetClipMask
,(
Display
*
dpy
,
GC
gc
,
Pixmap
pixmap
),(
dpy
,
gc
,
pixmap
),
return
)
#if NeedWidePrototypes
#if NeedWidePrototypes
SDL_X11_SYM
(
KeySym
,
XKeycodeToKeysym
,(
Display
*
a
,
unsigned
int
b
,
int
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
KeySym
,
XKeycodeToKeysym
,(
Display
*
a
,
unsigned
int
b
,
int
c
),(
a
,
b
,
c
),
return
)
...
@@ -182,6 +186,7 @@ SDL_X11_SYM(Status,XShmAttach,(Display* a,XShmSegmentInfo* b),(a,b),return)
...
@@ -182,6 +186,7 @@ SDL_X11_SYM(Status,XShmAttach,(Display* a,XShmSegmentInfo* b),(a,b),return)
SDL_X11_SYM
(
Status
,
XShmDetach
,(
Display
*
a
,
XShmSegmentInfo
*
b
),(
a
,
b
),
return
)
SDL_X11_SYM
(
Status
,
XShmDetach
,(
Display
*
a
,
XShmSegmentInfo
*
b
),(
a
,
b
),
return
)
SDL_X11_SYM
(
Status
,
XShmPutImage
,(
Display
*
a
,
Drawable
b
,
GC
c
,
XImage
*
d
,
int
e
,
int
f
,
int
g
,
int
h
,
unsigned
int
i
,
unsigned
int
j
,
Bool
k
),(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
),
return
)
SDL_X11_SYM
(
Status
,
XShmPutImage
,(
Display
*
a
,
Drawable
b
,
GC
c
,
XImage
*
d
,
int
e
,
int
f
,
int
g
,
int
h
,
unsigned
int
i
,
unsigned
int
j
,
Bool
k
),(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
),
return
)
SDL_X11_SYM
(
XImage
*
,
XShmCreateImage
,(
Display
*
a
,
Visual
*
b
,
unsigned
int
c
,
int
d
,
char
*
e
,
XShmSegmentInfo
*
f
,
unsigned
int
g
,
unsigned
int
h
),(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
),
return
)
SDL_X11_SYM
(
XImage
*
,
XShmCreateImage
,(
Display
*
a
,
Visual
*
b
,
unsigned
int
c
,
int
d
,
char
*
e
,
XShmSegmentInfo
*
f
,
unsigned
int
g
,
unsigned
int
h
),(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
),
return
)
SDL_X11_SYM
(
Pixmap
,
XShmCreatePixmap
,(
Display
*
a
,
Drawable
b
,
char
*
c
,
XShmSegmentInfo
*
d
,
unsigned
int
e
,
unsigned
int
f
,
unsigned
int
g
),(
a
,
b
,
c
,
d
,
e
,
f
,
g
),
return
)
SDL_X11_SYM
(
Bool
,
XShmQueryExtension
,(
Display
*
a
),(
a
),
return
)
SDL_X11_SYM
(
Bool
,
XShmQueryExtension
,(
Display
*
a
),(
a
),
return
)
#endif
#endif
...
@@ -237,6 +242,41 @@ SDL_X11_SYM(Status,XScreenSaverQueryVersion,(Display *dpy,int *major_versionp,in
...
@@ -237,6 +242,41 @@ SDL_X11_SYM(Status,XScreenSaverQueryVersion,(Display *dpy,int *major_versionp,in
SDL_X11_SYM
(
void
,
XScreenSaverSuspend
,(
Display
*
dpy
,
Bool
suspend
),(
dpy
,
suspend
),
return
)
SDL_X11_SYM
(
void
,
XScreenSaverSuspend
,(
Display
*
dpy
,
Bool
suspend
),(
dpy
,
suspend
),
return
)
#endif
#endif
/* XRender support */
#if SDL_VIDEO_DRIVER_X11_XRENDER
SDL_X11_MODULE
(
XRENDER
)
SDL_X11_SYM
(
Bool
,
XRenderQueryExtension
,(
Display
*
dpy
,
int
*
event_base
,
int
*
error_base
),(
dpy
,
event_base
,
error_base
),
return
)
SDL_X11_SYM
(
Bool
,
XRenderQueryVersion
,(
Display
*
dpy
,
int
*
major
,
int
*
minor
),(
dpy
,
major
,
minor
),
return
)
SDL_X11_SYM
(
XRenderPictFormat
*
,
XRenderFindVisualFormat
,(
Display
*
dpy
,
_Xconst
Visual
*
visual
),(
dpy
,
visual
),
return
)
SDL_X11_SYM
(
XRenderPictFormat
*
,
XRenderFindStandardFormat
,(
Display
*
dpy
,
int
format
),(
dpy
,
format
),
return
)
SDL_X11_SYM
(
XRenderPictFormat
*
,
XRenderFindFormat
,(
Display
*
dpy
,
unsigned
long
mask
,
_Xconst
XRenderPictFormat
*
templ
,
int
count
),(
dpy
,
mask
,
templ
,
count
),
return
)
SDL_X11_SYM
(
Picture
,
XRenderCreatePicture
,(
Display
*
dpy
,
Drawable
drawable
,
_Xconst
XRenderPictFormat
*
format
,
unsigned
long
valuemask
,
_Xconst
XRenderPictureAttributes
*
attributes
),(
dpy
,
drawable
,
format
,
valuemask
,
attributes
),
return
)
SDL_X11_SYM
(
void
,
XRenderFreePicture
,(
Display
*
dpy
,
Picture
picture
),(
dpy
,
picture
),
return
)
SDL_X11_SYM
(
void
,
XRenderChangePicture
,(
Display
*
dpy
,
Picture
picture
,
unsigned
long
valuemask
,
_Xconst
XRenderPictureAttributes
*
attributes
),(
dpy
,
picture
,
valuemask
,
attributes
),
return
)
SDL_X11_SYM
(
void
,
XRenderComposite
,(
Display
*
dpy
,
int
op
,
Picture
src
,
Picture
mask
,
Picture
dst
,
int
src_x
,
int
src_y
,
int
mask_x
,
int
mask_y
,
int
dst_x
,
int
dst_y
,
unsigned
int
width
,
unsigned
int
height
),(
dpy
,
op
,
src
,
mask
,
dst
,
src_x
,
src_y
,
mask_x
,
mask_y
,
dst_x
,
dst_y
,
width
,
height
),
return
)
SDL_X11_SYM
(
Picture
,
XRenderCreateSolidFill
,(
Display
*
dpy
,
const
XRenderColor
*
color
),(
dpy
,
color
),
return
)
SDL_X11_SYM
(
void
,
XRenderSetPictureTransform
,(
Display
*
dpy
,
Picture
picture
,
XTransform
*
transform
),(
dpy
,
picture
,
transform
),
return
)
SDL_X11_SYM
(
void
,
XRenderFillRectangle
,(
Display
*
dpy
,
int
op
,
Picture
dst
,
_Xconst
XRenderColor
*
color
,
int
x
,
int
y
,
unsigned
int
width
,
unsigned
int
height
),(
dpy
,
op
,
dst
,
color
,
x
,
y
,
width
,
height
),
return
)
SDL_X11_SYM
(
void
,
XRenderFillRectangles
,(
Display
*
dpy
,
int
op
,
Picture
dst
,
_Xconst
XRenderColor
*
color
,
_Xconst
XRectangle
*
rectangles
,
int
n_rects
),(
dpy
,
op
,
dst
,
color
,
rectangles
,
n_rects
),
return
)
SDL_X11_SYM
(
void
,
XRenderSetPictureFilter
,(
Display
*
dpy
,
Picture
picture
,
const
char
*
filter
,
XFixed
*
params
,
int
nparams
),(
dpy
,
picture
,
filter
,
params
,
nparams
),
return
)
#endif
#ifdef SDL_VIDEO_DRIVER_X11_XDAMAGE
SDL_X11_MODULE
(
XDAMAGE
)
SDL_X11_SYM
(
Bool
,
XDamageQueryExtension
,(
Display
*
dpy
,
int
*
event_base_return
,
int
*
error_base_return
),(
dpy
,
event_base_return
,
error_base_return
),
return
)
SDL_X11_SYM
(
Status
,
XDamageQueryVersion
,(
Display
*
dpy
,
int
*
major
,
int
*
minor
),(
dpy
,
major
,
minor
),
return
)
SDL_X11_SYM
(
Damage
,
XDamageCreate
,(
Display
*
dpy
,
Drawable
d
,
int
level
),(
dpy
,
d
,
level
),
return
)
SDL_X11_SYM
(
void
,
XDamageSubtract
,(
Display
*
dpy
,
Damage
damage
,
XserverRegion
repair
,
XserverRegion
parts
),(
dpy
,
damage
,
repair
,
parts
),
return
)
SDL_X11_SYM
(
void
,
XDamageDestroy
,(
Display
*
dpy
,
Damage
damage
),(
dpy
,
damage
),
return
)
#endif
#ifdef SDL_VIDEO_DRIVER_X11_XFIXES
SDL_X11_MODULE
(
XFIXES
)
SDL_X11_SYM
(
Bool
,
XFixesQueryExtension
,(
Display
*
dpy
,
int
*
event_base
,
int
*
error_base
),(
dpy
,
event_base
,
error_base
),
return
)
SDL_X11_SYM
(
Status
,
XFixesQueryVersion
,(
Display
*
dpy
,
int
*
major
,
int
*
minor
),(
dpy
,
major
,
minor
),
return
)
SDL_X11_SYM
(
void
,
XFixesSetGCClipRegion
,(
Display
*
dpy
,
GC
gc
,
int
clip_x
,
int
clip_y
,
XserverRegion
region
),(
dpy
,
gc
,
clip_x
,
clip_y
,
region
),
return
)
SDL_X11_SYM
(
void
,
XFixesSetPictureClipRegion
,(
Display
*
dpy
,
XID
picture
,
int
clip_x
,
int
clip_y
,
XserverRegion
region
),(
dpy
,
picture
,
clip_x
,
clip_y
,
region
),
return
)
#endif
/* *INDENT-ON* */
/* *INDENT-ON* */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11video.h
View file @
d8e7cebd
...
@@ -45,7 +45,15 @@
...
@@ -45,7 +45,15 @@
#if SDL_VIDEO_DRIVER_X11_SCRNSAVER
#if SDL_VIDEO_DRIVER_X11_SCRNSAVER
#include <X11/extensions/scrnsaver.h>
#include <X11/extensions/scrnsaver.h>
#endif
#endif
#if SDL_VIDEO_DRIVER_X11_XRENDER
#include <X11/extensions/Xrender.h>
#endif
#if SDL_VIDEO_DRIVER_X11_XDAMAGE
#include <X11/extensions/Xdamage.h>
#endif
#if SDL_VIDEO_DRIVER_X11_XFIXES
#include <X11/extensions/Xfixes.h>
#endif
#include "SDL_x11dyn.h"
#include "SDL_x11dyn.h"
#include "SDL_x11clipboard.h"
#include "SDL_x11clipboard.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