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
0fe854b7
Commit
0fe854b7
authored
Sep 10, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option to disable XVidMode support.
parent
38909c59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
x11drv_main.c
dlls/x11drv/x11drv_main.c
+4
-1
xvidmode.c
dlls/x11drv/xvidmode.c
+7
-3
config
documentation/samples/config
+2
-0
No files found.
dlls/x11drv/x11drv_main.c
View file @
0fe854b7
...
...
@@ -55,7 +55,7 @@ unsigned int screen_width;
unsigned
int
screen_height
;
unsigned
int
screen_depth
;
Window
root_window
;
int
dxgrab
,
usedga
;
int
dxgrab
,
usedga
,
usexvidmode
;
unsigned
int
X11DRV_server_startticks
;
...
...
@@ -219,6 +219,9 @@ static void setup_options(void)
if
(
!
get_config_key
(
hkey
,
appkey
,
"UseDGA"
,
buffer
,
sizeof
(
buffer
)
))
usedga
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
if
(
!
get_config_key
(
hkey
,
appkey
,
"UseXVidMode"
,
buffer
,
sizeof
(
buffer
)
))
usexvidmode
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
screen_depth
=
0
;
if
(
!
get_config_key
(
hkey
,
appkey
,
"ScreenDepth"
,
buffer
,
sizeof
(
buffer
)
))
screen_depth
=
atoi
(
buffer
);
...
...
dlls/x11drv/xvidmode.c
View file @
0fe854b7
...
...
@@ -24,6 +24,8 @@ DEFAULT_DEBUG_CHANNEL(x11drv);
#ifdef HAVE_LIBXXF86VM
extern
int
usexvidmode
;
static
int
xf86vm_event
,
xf86vm_error
,
xf86vm_major
,
xf86vm_minor
;
LPDDHALMODEINFO
xf86vm_modes
;
...
...
@@ -62,13 +64,15 @@ void X11DRV_XF86VM_Init(void)
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 */
if
(
!
TSXF86VidModeQueryExtension
(
gdi_display
,
&
xf86vm_event
,
&
xf86vm_error
))
return
;
if
(
!
TSXF86VidModeQueryVersion
(
gdi_display
,
&
xf86vm_major
,
&
xf86vm_minor
))
return
;
/* if in desktop mode, don't use XVidMode */
if
(
root_window
!=
DefaultRootWindow
(
gdi_display
))
return
;
/* retrieve modes */
if
(
!
TSXF86VidModeGetAllModeLines
(
gdi_display
,
DefaultScreen
(
gdi_display
),
&
nmodes
,
&
modes
))
...
...
documentation/samples/config
View file @
0fe854b7
...
...
@@ -124,6 +124,8 @@ WINE REGISTRY Version 2
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
...
...
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