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
3a5eef4e
Commit
3a5eef4e
authored
May 10, 2013
by
Sam Edwards
Committed by
Alexandre Julliard
May 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Cache XRandR 1.2 display mode.
parent
3fc2bcca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
xrandr.c
dlls/winex11.drv/xrandr.c
+6
-1
No files found.
dlls/winex11.drv/xrandr.c
View file @
3a5eef4e
...
...
@@ -278,6 +278,9 @@ static int xrandr12_get_current_mode(void)
XRRCrtcInfo
*
crtc_info
;
int
i
,
ret
=
-
1
;
if
(
xrandr_current_mode
!=
-
1
)
return
xrandr_current_mode
;
if
(
!
(
resources
=
pXRRGetScreenResourcesCurrent
(
gdi_display
,
root_window
)))
{
ERR
(
"Failed to get screen resources.
\n
"
);
...
...
@@ -310,9 +313,10 @@ static int xrandr12_get_current_mode(void)
if
(
ret
==
-
1
)
{
ERR
(
"Unknown mode, returning default.
\n
"
);
ret
=
0
;
ret
urn
0
;
}
xrandr_current_mode
=
ret
;
return
ret
;
}
...
...
@@ -354,6 +358,7 @@ static LONG xrandr12_set_current_mode( int mode )
return
DISP_CHANGE_FAILED
;
}
xrandr_current_mode
=
mode
;
X11DRV_resize_desktop
(
dd_modes
[
mode
].
width
,
dd_modes
[
mode
].
height
);
return
DISP_CHANGE_SUCCESSFUL
;
}
...
...
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