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
cc0b7efe
Commit
cc0b7efe
authored
Jul 15, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Desktop mode should only disable mode switching, not gamma ramp
support.
parent
76fdbf03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
xvidmode.c
dlls/x11drv/xvidmode.c
+5
-4
No files found.
dlls/x11drv/xvidmode.c
View file @
cc0b7efe
...
...
@@ -108,12 +108,10 @@ void X11DRV_XF86VM_Init(void)
{
int
nmodes
,
i
;
Bool
ok
;
Bool
in_desktop_mode
=
(
root_window
!=
DefaultRootWindow
(
gdi_display
));
if
(
xf86vm_major
)
return
;
/* already initialized? */
/* if in desktop mode, don't use XVidMode */
if
(
root_window
!=
DefaultRootWindow
(
gdi_display
))
return
;
if
(
!
usexvidmode
)
return
;
/* see if XVidMode is available */
...
...
@@ -138,11 +136,14 @@ void X11DRV_XF86VM_Init(void)
#endif
/* retrieve modes */
ok
=
XF86VidModeGetAllModeLines
(
gdi_display
,
DefaultScreen
(
gdi_display
),
&
nmodes
,
&
modes
);
if
(
!
in_desktop_mode
)
ok
=
XF86VidModeGetAllModeLines
(
gdi_display
,
DefaultScreen
(
gdi_display
),
&
nmodes
,
&
modes
);
}
wine_tsx11_unlock
();
if
(
!
ok
)
return
;
/* In desktop mode, do not switch resolution... But still use the Gamma ramp stuff */
if
(
in_desktop_mode
)
return
;
TRACE
(
"XVidMode modes: count=%d
\n
"
,
nmodes
);
xf86vm_mode_count
=
nmodes
;
...
...
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