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
3eb62ed6
Commit
3eb62ed6
authored
Aug 23, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Sep 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Complete recognition of pixelformat 19: X8L8V8U8.
parent
8b6ae910
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 @
3eb62ed6
...
@@ -325,6 +325,16 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
...
@@ -325,6 +325,16 @@ PixelFormat_WineD3DtoDD(DDPIXELFORMAT *DDPixelFormat,
DDPixelFormat
->
u5
.
dwLuminanceAlphaBitMask
=
0x00000000
;
DDPixelFormat
->
u5
.
dwLuminanceAlphaBitMask
=
0x00000000
;
break
;
break
;
case
WINED3DFMT_X8L8V8U8
:
DDPixelFormat
->
dwFlags
=
DDPF_BUMPDUDV
;
DDPixelFormat
->
dwFourCC
=
0
;
DDPixelFormat
->
u1
.
dwBumpBitCount
=
32
;
DDPixelFormat
->
u2
.
dwBumpDuBitMask
=
0x000000ff
;
DDPixelFormat
->
u3
.
dwBumpDvBitMask
=
0x0000ff00
;
DDPixelFormat
->
u4
.
dwBumpLuminanceBitMask
=
0x00ff0000
;
DDPixelFormat
->
u5
.
dwLuminanceAlphaBitMask
=
0x00000000
;
break
;
default:
default:
ERR
(
"Can't translate this Pixelformat %d
\n
"
,
WineD3DFormat
);
ERR
(
"Can't translate this Pixelformat %d
\n
"
,
WineD3DFormat
);
}
}
...
@@ -620,6 +630,13 @@ PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat)
...
@@ -620,6 +630,13 @@ PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat)
{
{
return
WINED3DFMT_L6V5U5
;
return
WINED3DFMT_L6V5U5
;
}
}
else
if
(
(
DDPixelFormat
->
u1
.
dwBumpBitCount
==
32
)
&&
(
DDPixelFormat
->
u2
.
dwBumpDuBitMask
==
0x000000ff
)
&&
(
DDPixelFormat
->
u3
.
dwBumpDvBitMask
==
0x0000ff00
)
&&
(
DDPixelFormat
->
u4
.
dwBumpLuminanceBitMask
==
0x00ff0000
)
)
{
return
WINED3DFMT_X8L8V8U8
;
}
}
}
ERR
(
"Unknown Pixelformat!
\n
"
);
ERR
(
"Unknown Pixelformat!
\n
"
);
...
...
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