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
3ea9024f
Commit
3ea9024f
authored
Oct 06, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Handle WINED3DFMT_R16G16_SNORM.
parent
7cfaf611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
utils.c
dlls/ddraw/utils.c
+17
-0
No files found.
dlls/ddraw/utils.c
View file @
3ea9024f
...
...
@@ -311,6 +311,16 @@ void PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat, enum wined3d_format_i
DDPixelFormat
->
u5
.
dwLuminanceAlphaBitMask
=
0x00000000
;
break
;
case
WINED3DFMT_R16G16_SNORM
:
DDPixelFormat
->
dwFlags
=
DDPF_BUMPDUDV
;
DDPixelFormat
->
dwFourCC
=
0
;
DDPixelFormat
->
u1
.
dwBumpBitCount
=
32
;
DDPixelFormat
->
u2
.
dwBumpDuBitMask
=
0x0000ffff
;
DDPixelFormat
->
u3
.
dwBumpDvBitMask
=
0xffff0000
;
DDPixelFormat
->
u4
.
dwBumpLuminanceBitMask
=
0x00000000
;
DDPixelFormat
->
u5
.
dwLuminanceAlphaBitMask
=
0x00000000
;
break
;
case
WINED3DFMT_R5G5_SNORM_L6_UNORM
:
DDPixelFormat
->
dwFlags
=
DDPF_BUMPDUDV
;
DDPixelFormat
->
dwFourCC
=
0
;
...
...
@@ -579,6 +589,13 @@ enum wined3d_format_id PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat
{
return
WINED3DFMT_R8G8_SNORM
;
}
else
if
(
(
DDPixelFormat
->
u1
.
dwBumpBitCount
==
32
)
&&
(
DDPixelFormat
->
u2
.
dwBumpDuBitMask
==
0x0000ffff
)
&&
(
DDPixelFormat
->
u3
.
dwBumpDvBitMask
==
0xffff0000
)
&&
(
DDPixelFormat
->
u4
.
dwBumpLuminanceBitMask
==
0x00000000
)
)
{
return
WINED3DFMT_R16G16_SNORM
;
}
else
if
(
(
DDPixelFormat
->
u1
.
dwBumpBitCount
==
16
)
&&
(
DDPixelFormat
->
u2
.
dwBumpDuBitMask
==
0x0000001f
)
&&
(
DDPixelFormat
->
u3
.
dwBumpDvBitMask
==
0x000003e0
)
&&
...
...
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