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
8e06d90e
Commit
8e06d90e
authored
Nov 27, 1998
by
Stephen Crowley
Committed by
Alexandre Julliard
Nov 27, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a new cmdline switch to disable XF86 DGA Extensions, -nodga.
parent
4ae195a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
ddraw.c
graphics/ddraw.c
+5
-1
options.h
include/options.h
+1
-0
main.c
misc/main.c
+6
-1
No files found.
graphics/ddraw.c
View file @
8e06d90e
...
...
@@ -37,6 +37,7 @@
#include "spy.h"
#include "message.h"
#include "x11drv.h"
#include "options.h"
#ifdef HAVE_LIBXXF86DGA
#include "ts_xf86dga.h"
...
...
@@ -89,13 +90,16 @@ DDRAW_DGA_Available()
#ifdef HAVE_LIBXXF86DGA
int
evbase
,
evret
,
fd
;
if
(
Options
.
noDGA
)
return
0
;
/* You don't have to be root to use DGA extensions. Simply having access to /dev/mem will do the trick */
/* This can be achieved by adding the user to the "kmem" group on Debian 2.x systems, don't know about */
/* others. --stephenc */
if
((
fd
=
open
(
"/dev/mem"
,
O_RDWR
))
!=
-
1
)
close
(
fd
);
return
(
fd
!=
-
1
)
&&
TSXF86DGAQueryExtension
(
display
,
&
evbase
,
&
evret
);
return
(
fd
!=
-
1
)
&&
TSXF86DGAQueryExtension
(
display
,
&
evbase
,
&
evret
);
#else
/* defined(HAVE_LIBXXF86DGA) */
return
0
;
#endif
/* defined(HAVE_LIBXXF86DGA) */
...
...
include/options.h
View file @
8e06d90e
...
...
@@ -68,6 +68,7 @@ struct options
WINE_LANGUAGE
language
;
/* Current language */
int
managed
;
/* Managed windows */
int
perfectGraphics
;
/* Favor correctness over speed for graphics */
int
noDGA
;
/* Disable XFree86 DGA extensions */
char
*
configFileName
;
/* Command line config file */
};
...
...
misc/main.c
View file @
8e06d90e
...
...
@@ -98,6 +98,7 @@ struct options Options =
#endif
FALSE
,
/* Managed windows */
FALSE
,
/* Perfect graphics */
FALSE
,
/* No DGA */
NULL
/* Alternate config file name */
};
...
...
@@ -122,7 +123,8 @@ static XrmOptionDescRec optionsTable[] =
{
"-mode"
,
".mode"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
},
{
"-managed"
,
".managed"
,
XrmoptionNoArg
,
(
caddr_t
)
"off"
},
{
"-winver"
,
".winver"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
},
{
"-config"
,
".config"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
}
{
"-config"
,
".config"
,
XrmoptionSepArg
,
(
caddr_t
)
NULL
},
{
"-nodga"
,
".nodga"
,
XrmoptionNoArg
,
(
caddr_t
)
"off"
}
};
#define NB_OPTIONS (sizeof(optionsTable) / sizeof(optionsTable[0]))
...
...
@@ -148,6 +150,7 @@ static XrmOptionDescRec optionsTable[] =
" -managed Allow the window manager to manage created windows\n" \
" -mode mode Start Wine in a particular mode (standard or enhanced)\n" \
" -name name Set the application name\n" \
" -nodga Disable XFree86 DGA extensions\n" \
" -perfect Favor correctness over speed for graphical operations\n" \
" -privatemap Use a private color map\n" \
" -synchronous Turn on synchronous display mode\n" \
...
...
@@ -871,6 +874,8 @@ static void MAIN_ParseOptions( int *argc, char *argv[] )
VERSION_ParseVersion
(
(
char
*
)
value
.
addr
);
if
(
MAIN_GetResource
(
db
,
".config"
,
&
value
))
Options
.
configFileName
=
xstrdup
((
char
*
)
value
.
addr
);
if
(
MAIN_GetResource
(
db
,
".nodga"
,
&
value
))
Options
.
noDGA
=
TRUE
;
}
...
...
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