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
6b177c44
Commit
6b177c44
authored
Aug 13, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass the proper DeviceName to ChangeDisplaySettings.
parent
1c8a466c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
device.c
dlls/wined3d/device.c
+1
-2
directx.c
dlls/wined3d/directx.c
+8
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/device.c
View file @
6b177c44
...
...
@@ -1343,8 +1343,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
devmode
.
dmBitsPerPel
=
(
bpp
>=
24
)
?
32
:
bpp
;
/* Stupid XVidMode cannot change bpp */
devmode
.
dmPelsWidth
=
pPresentationParameters
->
BackBufferWidth
;
devmode
.
dmPelsHeight
=
pPresentationParameters
->
BackBufferHeight
;
MultiByteToWideChar
(
CP_ACP
,
0
,
"Gamers CG"
,
-
1
,
devmode
.
dmDeviceName
,
CCHDEVICENAME
);
ChangeDisplaySettingsExW
(
devmode
.
dmDeviceName
,
&
devmode
,
object
->
win_handle
,
CDS_FULLSCREEN
,
NULL
);
ChangeDisplaySettingsExW
(
This
->
adapter
->
DeviceName
,
&
devmode
,
NULL
,
CDS_FULLSCREEN
,
NULL
);
/* For GetDisplayMode */
This
->
ddraw_width
=
devmode
.
dmPelsWidth
;
...
...
dlls/wined3d/directx.c
View file @
6b177c44
...
...
@@ -2479,6 +2479,8 @@ BOOL InitAdapters(void) {
/* For now only one default adapter */
{
int
attribute
;
DISPLAY_DEVICEW
DisplayDevice
;
TRACE
(
"Initializing default adapter
\n
"
);
Adapters
[
0
].
monitorPoint
.
x
=
-
1
;
Adapters
[
0
].
monitorPoint
.
y
=
-
1
;
...
...
@@ -2499,6 +2501,12 @@ BOOL InitAdapters(void) {
Adapters
[
0
].
driver
=
"Display"
;
Adapters
[
0
].
description
=
"Direct3D HAL"
;
/* Initialize the Adapter's DeviceName which is required for ChangeDisplaySettings and friends */
DisplayDevice
.
cb
=
sizeof
(
DisplayDevice
);
EnumDisplayDevicesW
(
NULL
,
0
/* Adapter 0 = iDevNum 0 */
,
&
DisplayDevice
,
0
);
TRACE
(
"DeviceName: %s
\n
"
,
debugstr_w
(
DisplayDevice
.
DeviceName
));
strcpyW
(
Adapters
[
0
].
DeviceName
,
DisplayDevice
.
DeviceName
);
if
(
WineD3D_CreateFakeGLContext
())
{
int
iPixelFormat
;
int
attribs
[
8
];
...
...
dlls/wined3d/wined3d_private.h
View file @
6b177c44
...
...
@@ -588,6 +588,7 @@ struct WineD3DAdapter
WineD3D_GL_Info
gl_info
;
const
char
*
driver
;
const
char
*
description
;
WCHAR
DeviceName
[
CCHDEVICENAME
];
/* DeviceName for use with e.g. ChangeDisplaySettings */
int
nCfgs
;
WineD3D_PixelFormat
*
cfgs
;
};
...
...
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