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
3fc2bcca
Commit
3fc2bcca
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.0 display mode.
parent
ce4b6451
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
xrandr.c
dlls/winex11.drv/xrandr.c
+8
-1
No files found.
dlls/winex11.drv/xrandr.c
View file @
3fc2bcca
...
...
@@ -68,6 +68,7 @@ static int primary_crtc;
static
struct
x11drv_mode_info
*
dd_modes
;
static
SizeID
*
xrandr10_modes
;
static
unsigned
int
xrandr_mode_count
;
static
int
xrandr_current_mode
=
-
1
;
static
int
load_xrandr
(
void
)
{
...
...
@@ -125,6 +126,9 @@ static int xrandr10_get_current_mode(void)
unsigned
int
i
;
int
res
=
-
1
;
if
(
xrandr_current_mode
!=
-
1
)
return
xrandr_current_mode
;
sc
=
pXRRGetScreenInfo
(
gdi_display
,
DefaultRootWindow
(
gdi_display
));
size
=
pXRRConfigCurrentConfiguration
(
sc
,
&
rot
);
rate
=
pXRRConfigCurrentRate
(
sc
);
...
...
@@ -141,8 +145,10 @@ static int xrandr10_get_current_mode(void)
if
(
res
==
-
1
)
{
ERR
(
"In unknown mode, returning default
\n
"
);
re
s
=
0
;
re
turn
0
;
}
xrandr_current_mode
=
res
;
return
res
;
}
...
...
@@ -177,6 +183,7 @@ static LONG xrandr10_set_current_mode( int mode )
if
(
stat
==
RRSetConfigSuccess
)
{
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