Commit 2bce6fea authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

- Added a new option 'noxshm'

- Added a 16bpp -> 32 bpp conversion function
parent fd087377
...@@ -74,6 +74,7 @@ struct options ...@@ -74,6 +74,7 @@ struct options
int managed; /* Managed windows */ int managed; /* Managed windows */
int perfectGraphics; /* Favor correctness over speed for graphics */ int perfectGraphics; /* Favor correctness over speed for graphics */
int noDGA; /* Disable XFree86 DGA extensions */ int noDGA; /* Disable XFree86 DGA extensions */
int noXSHM; /* Disable use of XSHM extension */
char * configFileName; /* Command line config file */ char * configFileName; /* Command line config file */
int screenDepth; int screenDepth;
}; };
......
...@@ -102,6 +102,7 @@ struct options Options = ...@@ -102,6 +102,7 @@ struct options Options =
FALSE, /* Managed windows */ FALSE, /* Managed windows */
FALSE, /* Perfect graphics */ FALSE, /* Perfect graphics */
FALSE, /* No DGA */ FALSE, /* No DGA */
FALSE, /* No XSHM */
NULL, /* Alternate config file name */ NULL, /* Alternate config file name */
0 /* screenDepth */ 0 /* screenDepth */
}; };
...@@ -130,6 +131,7 @@ static char szUsage[] = ...@@ -130,6 +131,7 @@ static char szUsage[] =
" -mode mode Start Wine in a particular mode (standard or enhanced)\n" " -mode mode Start Wine in a particular mode (standard or enhanced)\n"
" -name name Set the application name\n" " -name name Set the application name\n"
" -nodga Disable XFree86 DGA extensions\n" " -nodga Disable XFree86 DGA extensions\n"
" -noxshm Disable XSHM extension\n"
" -perfect Favor correctness over speed for graphical operations\n" " -perfect Favor correctness over speed for graphical operations\n"
" -privatemap Use a private color map\n" " -privatemap Use a private color map\n"
" -synchronous Turn on synchronous display mode\n" " -synchronous Turn on synchronous display mode\n"
......
...@@ -70,6 +70,7 @@ static XrmOptionDescRec optionsTable[] = ...@@ -70,6 +70,7 @@ static XrmOptionDescRec optionsTable[] =
{ "-winver", ".winver", XrmoptionSepArg, (caddr_t)NULL }, { "-winver", ".winver", XrmoptionSepArg, (caddr_t)NULL },
{ "-config", ".config", XrmoptionSepArg, (caddr_t)NULL }, { "-config", ".config", XrmoptionSepArg, (caddr_t)NULL },
{ "-nodga", ".nodga", XrmoptionNoArg, (caddr_t)"off"}, { "-nodga", ".nodga", XrmoptionNoArg, (caddr_t)"off"},
{ "-noxshm", ".noxshm", XrmoptionNoArg, (caddr_t)"off"},
{ "-console", ".console", XrmoptionSepArg, (caddr_t)NULL }, { "-console", ".console", XrmoptionSepArg, (caddr_t)NULL },
{ "-dosver", ".dosver", XrmoptionSepArg, (caddr_t)NULL } { "-dosver", ".dosver", XrmoptionSepArg, (caddr_t)NULL }
}; };
...@@ -288,6 +289,8 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[]) ...@@ -288,6 +289,8 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[])
Options.configFileName = xstrdup((char *)value.addr); Options.configFileName = xstrdup((char *)value.addr);
if (X11DRV_USER_GetResource( db, ".nodga", &value)) if (X11DRV_USER_GetResource( db, ".nodga", &value))
Options.noDGA = TRUE; Options.noDGA = TRUE;
if (X11DRV_USER_GetResource( db, ".noxshm", &value))
Options.noXSHM = TRUE;
if (X11DRV_USER_GetResource( db, ".console", &value)) if (X11DRV_USER_GetResource( db, ".console", &value))
driver.driver_list = xstrdup((char *)value.addr); driver.driver_list = xstrdup((char *)value.addr);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment