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
864b4535
Commit
864b4535
authored
Oct 24, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct Xinerama APIs for querying version and availability.
Fixes Bugzilla #1314.
parent
034365a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
SDL_x11modes.c
src/video/x11/SDL_x11modes.c
+4
-1
SDL_x11sym.h
src/video/x11/SDL_x11sym.h
+1
-0
No files found.
src/video/x11/SDL_x11modes.c
View file @
864b4535
...
@@ -200,6 +200,8 @@ int vm_event, vm_error = -1;
...
@@ -200,6 +200,8 @@ int vm_event, vm_error = -1;
static
SDL_bool
static
SDL_bool
CheckXinerama
(
Display
*
display
,
int
*
major
,
int
*
minor
)
CheckXinerama
(
Display
*
display
,
int
*
major
,
int
*
minor
)
{
{
int
event_base
=
0
;
int
error_base
=
0
;
const
char
*
env
;
const
char
*
env
;
/* Default the extension not available */
/* Default the extension not available */
...
@@ -216,7 +218,8 @@ CheckXinerama(Display * display, int *major, int *minor)
...
@@ -216,7 +218,8 @@ CheckXinerama(Display * display, int *major, int *minor)
}
}
/* Query the extension version */
/* Query the extension version */
if
(
!
XineramaQueryExtension
(
display
,
major
,
minor
)
||
if
(
!
XineramaQueryExtension
(
display
,
&
event_base
,
&
error_base
)
||
!
XineramaQueryVersion
(
display
,
major
,
minor
)
||
!
XineramaIsActive
(
display
))
{
!
XineramaIsActive
(
display
))
{
return
SDL_FALSE
;
return
SDL_FALSE
;
}
}
...
...
src/video/x11/SDL_x11sym.h
View file @
864b4535
...
@@ -189,6 +189,7 @@ SDL_X11_SYM(Cursor,XcursorImageLoadCursor,(Display *a,const XcursorImage *b),(a,
...
@@ -189,6 +189,7 @@ SDL_X11_SYM(Cursor,XcursorImageLoadCursor,(Display *a,const XcursorImage *b),(a,
SDL_X11_MODULE
(
XINERAMA
)
SDL_X11_MODULE
(
XINERAMA
)
SDL_X11_SYM
(
Bool
,
XineramaIsActive
,(
Display
*
a
),(
a
),
return
)
SDL_X11_SYM
(
Bool
,
XineramaIsActive
,(
Display
*
a
),(
a
),
return
)
SDL_X11_SYM
(
Bool
,
XineramaQueryExtension
,(
Display
*
a
,
int
*
b
,
int
*
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
Bool
,
XineramaQueryExtension
,(
Display
*
a
,
int
*
b
,
int
*
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
Status
,
XineramaQueryVersion
,(
Display
*
a
,
int
*
b
,
int
*
c
),(
a
,
b
,
c
),
return
)
SDL_X11_SYM
(
XineramaScreenInfo
*
,
XineramaQueryScreens
,(
Display
*
a
,
int
*
b
),(
a
,
b
),
return
)
SDL_X11_SYM
(
XineramaScreenInfo
*
,
XineramaQueryScreens
,(
Display
*
a
,
int
*
b
),(
a
,
b
),
return
)
#endif
#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