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
2527a333
Commit
2527a333
authored
Jan 23, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Jan 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added -dxgrab command line option, which confines cursor motion to the
DirectX primary surface.
parent
9837b598
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
1 deletion
+11
-1
ddraw.c
graphics/ddraw.c
+5
-0
options.h
include/options.h
+1
-0
main.c
misc/main.c
+1
-0
event.c
windows/x11drv/event.c
+1
-1
main.c
windows/x11drv/main.c
+3
-0
No files found.
graphics/ddraw.c
View file @
2527a333
...
...
@@ -4094,6 +4094,11 @@ static HRESULT WINAPI Xlib_IDirectDrawImpl_SetDisplayMode(
}
TRACE
(
"Setting drawable to %ld
\n
"
,
This
->
d
.
drawable
);
if
(
Options
.
DXGrab
)
{
/* Confine cursor movement (risky, but the user asked for it) */
TSXGrabPointer
(
display
,
This
->
d
.
drawable
,
True
,
0
,
GrabModeAsync
,
GrabModeAsync
,
This
->
d
.
drawable
,
None
,
CurrentTime
);
}
return
DD_OK
;
}
...
...
include/options.h
View file @
2527a333
...
...
@@ -75,6 +75,7 @@ struct options
int
perfectGraphics
;
/* Favor correctness over speed for graphics */
int
noDGA
;
/* Disable XFree86 DGA extensions */
int
noXSHM
;
/* Disable use of XSHM extension */
int
DXGrab
;
/* Enable DirectX mouse grab */
char
*
configFileName
;
/* Command line config file */
int
screenDepth
;
};
...
...
misc/main.c
View file @
2527a333
...
...
@@ -132,6 +132,7 @@ static char szUsage[] =
" -name name Set the application name
\n
"
" -nodga Disable XFree86 DGA extensions
\n
"
" -noxshm Disable XSHM extension
\n
"
" -dxgrab Enable DirectX mouse grab
\n
"
" -perfect Favor correctness over speed for graphical operations
\n
"
" -privatemap Use a private color map
\n
"
" -synchronous Turn on synchronous display mode
\n
"
...
...
windows/x11drv/event.c
View file @
2527a333
...
...
@@ -2120,7 +2120,7 @@ static void X11DRV_EVENT_WaitReplaceShmCompletionInternal( int *compl, Drawable
TRACE
(
"Wait complete (thread %lx) (time %ld)
\n
"
,
GetCurrentThreadId
(),
GetTickCount
()
);
/* clear wait */
st
=
InterlockedExchange
(
&
shm_q
[
n
-
1
].
state
,
2
);
st
=
InterlockedExchange
(
(
LPLONG
)
&
shm_q
[
n
-
1
].
state
,
2
);
if
(
st
!=
2
)
{
/* first waiter to return, release all other waiters */
nn
=
shm_q
[
n
-
1
].
waiter
;
...
...
windows/x11drv/main.c
View file @
2527a333
...
...
@@ -70,6 +70,7 @@ static XrmOptionDescRec optionsTable[] =
{
"-config"
,
".config"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
},
{
"-nodga"
,
".nodga"
,
XrmoptionNoArg
,
(
caddr_t
)
"off"
},
{
"-noxshm"
,
".noxshm"
,
XrmoptionNoArg
,
(
caddr_t
)
"off"
},
{
"-dxgrab"
,
".dxgrab"
,
XrmoptionNoArg
,
(
caddr_t
)
"on"
},
{
"-console"
,
".console"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
},
{
"-dosver"
,
".dosver"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
}
};
...
...
@@ -290,6 +291,8 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[])
Options
.
noDGA
=
TRUE
;
if
(
X11DRV_USER_GetResource
(
db
,
".noxshm"
,
&
value
))
Options
.
noXSHM
=
TRUE
;
if
(
X11DRV_USER_GetResource
(
db
,
".dxgrab"
,
&
value
))
Options
.
DXGrab
=
TRUE
;
if
(
X11DRV_USER_GetResource
(
db
,
".console"
,
&
value
))
driver
.
driver_list
=
xstrdup
((
char
*
)
value
.
addr
);
else
...
...
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