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
51adbf5b
Commit
51adbf5b
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: Remove 24/32 bit hacks.
parent
96504632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
device.c
dlls/wined3d/device.c
+2
-3
No files found.
dlls/wined3d/device.c
View file @
51adbf5b
...
...
@@ -1520,7 +1520,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
memset
(
&
devmode
,
0
,
sizeof
(
devmode
));
devmode
.
dmSize
=
sizeof
(
devmode
);
devmode
.
dmFields
=
DM_BITSPERPEL
|
DM_PELSWIDTH
|
DM_PELSHEIGHT
;
devmode
.
dmBitsPerPel
=
(
bpp
>=
24
)
?
32
:
bpp
;
/* Stupid XVidMode cannot change bpp */
devmode
.
dmBitsPerPel
=
bpp
;
devmode
.
dmPelsWidth
=
pPresentationParameters
->
BackBufferWidth
;
devmode
.
dmPelsHeight
=
pPresentationParameters
->
BackBufferHeight
;
ChangeDisplaySettingsExW
(
This
->
adapter
->
DeviceName
,
&
devmode
,
NULL
,
CDS_FULLSCREEN
,
NULL
);
...
...
@@ -1650,7 +1650,7 @@ error:
memset
(
&
devmode
,
0
,
sizeof
(
devmode
));
devmode
.
dmSize
=
sizeof
(
devmode
);
devmode
.
dmFields
=
DM_BITSPERPEL
|
DM_PELSWIDTH
|
DM_PELSHEIGHT
;
devmode
.
dmBitsPerPel
=
(
formatDesc
->
bpp
>=
3
)
?
32
:
formatDesc
->
bpp
*
8
;
/* Stupid XVidMode cannot change bpp */
devmode
.
dmBitsPerPel
=
formatDesc
->
bpp
*
8
;
devmode
.
dmPelsWidth
=
object
->
orig_width
;
devmode
.
dmPelsHeight
=
object
->
orig_height
;
ChangeDisplaySettingsExW
(
This
->
adapter
->
DeviceName
,
&
devmode
,
NULL
,
CDS_FULLSCREEN
,
NULL
);
...
...
@@ -2327,7 +2327,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, U
devmode
.
dmSize
=
sizeof
(
devmode
);
devmode
.
dmFields
=
DM_BITSPERPEL
|
DM_PELSWIDTH
|
DM_PELSHEIGHT
;
devmode
.
dmBitsPerPel
=
formatDesc
->
bpp
*
8
;
if
(
devmode
.
dmBitsPerPel
==
24
)
devmode
.
dmBitsPerPel
=
32
;
devmode
.
dmPelsWidth
=
pMode
->
Width
;
devmode
.
dmPelsHeight
=
pMode
->
Height
;
...
...
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