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
f78ae8d1
Commit
f78ae8d1
authored
Dec 11, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use SetDisplayMode to set the display mode.
parent
51adbf5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
device.c
dlls/wined3d/device.c
+7
-22
No files found.
dlls/wined3d/device.c
View file @
f78ae8d1
...
...
@@ -1509,33 +1509,18 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
**************************************/
if
(
!
pPresentationParameters
->
Windowed
)
{
WINED3DDISPLAYMODE
mode
;
DEVMODEW
devmode
;
int
bpp
=
0
;
RECT
clip_rc
;
bpp
=
formatDesc
->
bpp
*
8
;
/* Change the display settings */
memset
(
&
devmode
,
0
,
sizeof
(
devmode
));
devmode
.
dmSize
=
sizeof
(
devmode
);
devmode
.
dmFields
=
DM_BITSPERPEL
|
DM_PELSWIDTH
|
DM_PELSHEIGHT
;
devmode
.
dmBitsPerPel
=
bpp
;
devmode
.
dmPelsWidth
=
pPresentationParameters
->
BackBufferWidth
;
devmode
.
dmPelsHeight
=
pPresentationParameters
->
BackBufferHeight
;
ChangeDisplaySettingsExW
(
This
->
adapter
->
DeviceName
,
&
devmode
,
NULL
,
CDS_FULLSCREEN
,
NULL
);
displaymode_set
=
TRUE
;
/* For GetDisplayMode */
This
->
ddraw_width
=
devmode
.
dmPelsWidth
;
This
->
ddraw_height
=
devmode
.
dmPelsHeight
;
This
->
ddraw_format
=
pPresentationParameters
->
BackBufferFormat
;
mode
.
Width
=
pPresentationParameters
->
BackBufferWidth
;
mode
.
Height
=
pPresentationParameters
->
BackBufferHeight
;
mode
.
Format
=
pPresentationParameters
->
BackBufferFormat
;
mode
.
RefreshRate
=
pPresentationParameters
->
FullScreen_RefreshRateInHz
;
IWineD3DDevice_SetDisplayMode
(
iface
,
0
,
&
mode
);
displaymode_set
=
TRUE
;
IWineD3DDevice_SetFullscreen
(
iface
,
TRUE
);
/* And finally clip mouse to our screen */
SetRect
(
&
clip_rc
,
0
,
0
,
devmode
.
dmPelsWidth
,
devmode
.
dmPelsHeight
);
ClipCursor
(
&
clip_rc
);
}
/**
...
...
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