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
1b8629b3
Commit
1b8629b3
authored
Jan 09, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Jan 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct loop check for enum display and include 32bit modes in 24bit.
parent
84146684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
directx.c
dlls/wined3d/directx.c
+6
-4
No files found.
dlls/wined3d/directx.c
View file @
1b8629b3
...
...
@@ -560,8 +560,9 @@ UINT WINAPI IWineD3DImpl_GetAdapterModeCount(IWineD3D *iface, UINT Adapter,
i
++
;
break
;
case
D3DFMT_X8R8G8B8
:
case
D3DFMT_A8R8G8B8
:
case
D3DFMT_A8R8G8B8
:
if
(
min
(
DevModeW
.
dmBitsPerPel
,
bpp
)
==
32
)
i
++
;
if
(
min
(
DevModeW
.
dmBitsPerPel
,
bpp
)
==
24
)
i
++
;
break
;
case
D3DFMT_X1R5G5B5
:
case
D3DFMT_A1R5G5B5
:
...
...
@@ -616,9 +617,9 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, D3DF
int
i
=
0
;
int
j
=
0
;
DEVMODEW
DevModeWtmp
;
while
(
(
Mode
+
1
)
<
i
&&
EnumDisplaySettingsExW
(
NULL
,
j
,
&
DevModeWtmp
,
0
))
{
while
(
i
<
(
Mode
+
1
)
&&
EnumDisplaySettingsExW
(
NULL
,
j
,
&
DevModeWtmp
,
0
))
{
j
++
;
switch
(
Format
)
{
...
...
@@ -628,6 +629,7 @@ HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapter, D3DF
case
D3DFMT_X8R8G8B8
:
case
D3DFMT_A8R8G8B8
:
if
(
min
(
DevModeWtmp
.
dmBitsPerPel
,
bpp
)
==
32
)
i
++
;
if
(
min
(
DevModeWtmp
.
dmBitsPerPel
,
bpp
)
==
24
)
i
++
;
break
;
case
D3DFMT_X1R5G5B5
:
case
D3DFMT_A1R5G5B5
:
...
...
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