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
5ed89090
Commit
5ed89090
authored
Jul 11, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Simplify X11DRV_XRandR_Init() error handling a bit.
parent
7b328098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
xrandr.c
dlls/winex11.drv/xrandr.c
+9
-12
No files found.
dlls/winex11.drv/xrandr.c
View file @
5ed89090
...
...
@@ -277,18 +277,15 @@ void X11DRV_XRandR_Init(void)
/* see if Xrandr is available */
wine_tsx11_lock
();
ok
=
pXRRQueryExtension
(
gdi_display
,
&
xrandr_event
,
&
xrandr_error
);
if
(
ok
)
{
X11DRV_expect_error
(
gdi_display
,
XRandRErrorHandler
,
NULL
);
ok
=
pXRRQueryVersion
(
gdi_display
,
&
xrandr_major
,
&
xrandr_minor
);
if
(
X11DRV_check_error
())
ok
=
FALSE
;
}
if
(
ok
)
{
TRACE
(
"Found XRandR - major: %d, minor: %d
\n
"
,
xrandr_major
,
xrandr_minor
);
xrandr_init_modes
();
}
if
(
!
pXRRQueryExtension
(
gdi_display
,
&
xrandr_event
,
&
xrandr_error
))
goto
done
;
X11DRV_expect_error
(
gdi_display
,
XRandRErrorHandler
,
NULL
);
ok
=
pXRRQueryVersion
(
gdi_display
,
&
xrandr_major
,
&
xrandr_minor
);
if
(
X11DRV_check_error
()
||
!
ok
)
goto
done
;
TRACE
(
"Found XRandR %d.%d.
\n
"
,
xrandr_major
,
xrandr_minor
);
xrandr_init_modes
();
done:
wine_tsx11_unlock
();
}
...
...
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