Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
02f3df39
Commit
02f3df39
authored
Apr 20, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Apr 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows never reports 24 bit colours, and some games fail to work
unless in specific modes. Report 16bit colour for 24bit modes.
parent
5052e072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
directx.c
dlls/d3d8/directx.c
+4
-6
No files found.
dlls/d3d8/directx.c
View file @
02f3df39
...
@@ -197,9 +197,8 @@ HRESULT WINAPI IDirect3D8Impl_EnumAdapterModes (LPDIRECT3D8 iface,
...
@@ -197,9 +197,8 @@ HRESULT WINAPI IDirect3D8Impl_EnumAdapterModes (LPDIRECT3D8 iface,
switch
(
bpp
)
{
switch
(
bpp
)
{
case
8
:
pMode
->
Format
=
D3DFMT_R3G3B2
;
break
;
case
8
:
pMode
->
Format
=
D3DFMT_R3G3B2
;
break
;
/*case 16: pMode->Format = D3DFMT_A4R4G4B4; break;*/
case
16
:
pMode
->
Format
=
D3DFMT_R5G6B5
;
break
;
case
16
:
pMode
->
Format
=
D3DFMT_R5G6B5
;
break
;
case
24
:
pMode
->
Format
=
D3DFMT_R5G6B5
;
break
;
/* Make 24bit appear as 16 bit */
case
24
:
pMode
->
Format
=
D3DFMT_R8G8B8
;
break
;
case
32
:
pMode
->
Format
=
D3DFMT_A8R8G8B8
;
break
;
case
32
:
pMode
->
Format
=
D3DFMT_A8R8G8B8
;
break
;
default:
pMode
->
Format
=
D3DFMT_UNKNOWN
;
default:
pMode
->
Format
=
D3DFMT_UNKNOWN
;
}
}
...
@@ -235,9 +234,8 @@ HRESULT WINAPI IDirect3D8Impl_GetAdapterDisplayMode (LPDIRECT3D8 iface,
...
@@ -235,9 +234,8 @@ HRESULT WINAPI IDirect3D8Impl_GetAdapterDisplayMode (LPDIRECT3D8 iface,
switch
(
bpp
)
{
switch
(
bpp
)
{
case
8
:
pMode
->
Format
=
D3DFMT_R3G3B2
;
break
;
case
8
:
pMode
->
Format
=
D3DFMT_R3G3B2
;
break
;
case
16
:
pMode
->
Format
=
D3DFMT_R5G6B5
;
break
;
case
16
:
pMode
->
Format
=
D3DFMT_R5G6B5
;
break
;
/*case 16: pMode->Format = D3DFMT_A4R4G4B4; break;*/
case
24
:
pMode
->
Format
=
D3DFMT_R5G6B5
;
break
;
/* Make 24bit appear as 16 bit */
case
24
:
pMode
->
Format
=
D3DFMT_R8G8B8
;
break
;
case
32
:
pMode
->
Format
=
D3DFMT_A8R8G8B8
;
break
;
case
32
:
pMode
->
Format
=
D3DFMT_A8R8G8B8
;
break
;
default:
pMode
->
Format
=
D3DFMT_UNKNOWN
;
default:
pMode
->
Format
=
D3DFMT_UNKNOWN
;
}
}
...
...
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