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
2256e06d
Commit
2256e06d
authored
Jun 12, 2007
by
Phil Costin
Committed by
Alexandre Julliard
Jun 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add gamma linerization support for D3DFMT_A4R4G4B4.
parent
4b9bfbe7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
directx.c
dlls/wined3d/directx.c
+1
-0
utils.c
dlls/wined3d/utils.c
+1
-1
No files found.
dlls/wined3d/directx.c
View file @
2256e06d
...
...
@@ -1692,6 +1692,7 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
switch
(
CheckFormat
)
{
case
WINED3DFMT_A8R8G8B8
:
case
WINED3DFMT_X8R8G8B8
:
case
WINED3DFMT_A4R4G4B4
:
case
WINED3DFMT_L8
:
case
WINED3DFMT_A8L8
:
case
WINED3DFMT_DXT1
:
...
...
dlls/wined3d/utils.c
View file @
2256e06d
...
...
@@ -66,7 +66,7 @@ static const PixelFormatDesc formats[] = {
{
WINED3DFMT_R5G6B5
,
0x0
,
0x0000F800
,
0x000007e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5
,
GL_RGB5
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
},
{
WINED3DFMT_X1R5G5B5
,
0x0
,
0x00007c00
,
0x000003e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5_A1
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
},
{
WINED3DFMT_A1R5G5B5
,
0x00008000
,
0x00007c00
,
0x000003e0
,
0x0000001f
,
2
,
FALSE
,
GL_RGB5_A1
,
GL_RGB5_A1
,
GL_BGRA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
},
{
WINED3DFMT_A4R4G4B4
,
0x0000f000
,
0x00000f00
,
0x000000f0
,
0x0000000f
,
2
,
FALSE
,
GL_RGBA4
,
GL_
RGBA4
,
GL_BGRA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
},
{
WINED3DFMT_A4R4G4B4
,
0x0000f000
,
0x00000f00
,
0x000000f0
,
0x0000000f
,
2
,
FALSE
,
GL_RGBA4
,
GL_
SRGB8_ALPHA8_EXT
,
GL_BGRA
,
GL_UNSIGNED_SHORT_4_4_4_4_REV
},
{
WINED3DFMT_R3G3B2
,
0x0
,
0x000000e0
,
0x0000001c
,
0x00000003
,
1
,
FALSE
,
GL_R3_G3_B2
,
GL_R3_G3_B2
,
GL_RGB
,
GL_UNSIGNED_BYTE_2_3_3_REV
},
{
WINED3DFMT_A8
,
0x000000ff
,
0x0
,
0x0
,
0x0
,
1
,
FALSE
,
GL_ALPHA8
,
GL_ALPHA8
,
GL_ALPHA
,
GL_UNSIGNED_BYTE
},
{
WINED3DFMT_A8R3G3B2
,
0x0000ff00
,
0x000000e0
,
0x0000001c
,
0x00000003
,
2
,
FALSE
,
0
,
0
,
0
,
0
},
...
...
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