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
2b4a7912
Commit
2b4a7912
authored
Jul 15, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add support for XRandR 1.3.
parent
cf6f8d2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
xrandr.c
dlls/winex11.drv/xrandr.c
+12
-5
No files found.
dlls/winex11.drv/xrandr.c
View file @
2b4a7912
...
...
@@ -53,8 +53,8 @@ MAKE_FUNCPTR(XRRFreeOutputInfo)
MAKE_FUNCPTR
(
XRRFreeScreenResources
)
MAKE_FUNCPTR
(
XRRGetCrtcInfo
)
MAKE_FUNCPTR
(
XRRGetOutputInfo
)
MAKE_FUNCPTR
(
XRRGetScreenResources
)
MAKE_FUNCPTR
(
XRRSetCrtcConfig
)
static
typeof
(
XRRGetScreenResources
)
*
xrandr_get_screen_resources
;
static
RRMode
*
xrandr12_modes
;
#endif
...
...
@@ -96,7 +96,6 @@ static int load_xrandr(void)
LOAD_FUNCPTR
(
XRRFreeScreenResources
)
LOAD_FUNCPTR
(
XRRGetCrtcInfo
)
LOAD_FUNCPTR
(
XRRGetOutputInfo
)
LOAD_FUNCPTR
(
XRRGetScreenResources
)
LOAD_FUNCPTR
(
XRRSetCrtcConfig
)
r
=
2
;
#endif
...
...
@@ -273,7 +272,7 @@ static int xrandr12_get_current_mode(void)
int
i
,
ret
=
-
1
;
wine_tsx11_lock
();
if
(
!
(
resources
=
pXRRGetScreenR
esources
(
gdi_display
,
root_window
)))
if
(
!
(
resources
=
xrandr_get_screen_r
esources
(
gdi_display
,
root_window
)))
{
wine_tsx11_unlock
();
ERR
(
"Failed to get screen resources.
\n
"
);
...
...
@@ -322,7 +321,7 @@ static LONG xrandr12_set_current_mode( int mode )
mode
=
mode
%
xrandr_mode_count
;
wine_tsx11_lock
();
if
(
!
(
resources
=
pXRRGetScreenR
esources
(
gdi_display
,
root_window
)))
if
(
!
(
resources
=
xrandr_get_screen_r
esources
(
gdi_display
,
root_window
)))
{
wine_tsx11_unlock
();
ERR
(
"Failed to get screen resources.
\n
"
);
...
...
@@ -364,7 +363,7 @@ static void xrandr12_init_modes(void)
XRRCrtcInfo
*
crtc_info
;
int
i
,
j
;
if
(
!
(
resources
=
pXRRGetScreenR
esources
(
gdi_display
,
root_window
)))
if
(
!
(
resources
=
xrandr_get_screen_r
esources
(
gdi_display
,
root_window
)))
{
ERR
(
"Failed to get screen resources.
\n
"
);
return
;
...
...
@@ -459,6 +458,14 @@ void X11DRV_XRandR_Init(void)
#ifdef HAVE_XRRGETSCREENRESOURCES
if
(
ret
>=
2
&&
(
major
>
1
||
(
major
==
1
&&
minor
>=
2
)))
{
if
(
major
>
1
||
(
major
==
1
&&
minor
>=
3
))
xrandr_get_screen_resources
=
wine_dlsym
(
xrandr_handle
,
"XRRGetScreenResourcesCurrent"
,
NULL
,
0
);
if
(
!
xrandr_get_screen_resources
)
xrandr_get_screen_resources
=
wine_dlsym
(
xrandr_handle
,
"XRRGetScreenResources"
,
NULL
,
0
);
}
if
(
xrandr_get_screen_resources
)
xrandr12_init_modes
();
else
#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