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
bb213f67
Commit
bb213f67
authored
Aug 27, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Take the format into account when finding the clear value.
parent
d0fdb1ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
surface.c
dlls/wined3d/surface.c
+23
-2
No files found.
dlls/wined3d/surface.c
View file @
bb213f67
...
...
@@ -3281,15 +3281,36 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_BltZ
(
IWineD3DSurfaceImpl
*
This
,
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
WINEDDBLTFX
*
DDBltFx
)
{
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
float
depth
;
if
(
Flags
&
WINEDDBLT_DEPTHFILL
)
{
switch
(
This
->
resource
.
format
)
{
case
WINED3DFMT_D16
:
depth
=
(
float
)
DDBltFx
->
u5
.
dwFillDepth
/
(
float
)
0x0000ffff
;
break
;
case
WINED3DFMT_D15S1
:
depth
=
(
float
)
DDBltFx
->
u5
.
dwFillDepth
/
(
float
)
0x0000fffe
;
break
;
case
WINED3DFMT_D24S8
:
case
WINED3DFMT_D24X8
:
depth
=
(
float
)
DDBltFx
->
u5
.
dwFillDepth
/
(
float
)
0x00ffffff
;
break
;
case
WINED3DFMT_D32
:
depth
=
(
float
)
DDBltFx
->
u5
.
dwFillDepth
/
(
float
)
0xffffffff
;
break
;
default:
depth
=
0
.
0
;
ERR
(
"Unexpected format for depth fill: %s
\n
"
,
debug_d3dformat
(
This
->
resource
.
format
));
}
if
(
Flags
&
WINEDDBLT_DEPTHFILL
)
return
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
myDevice
,
DestRect
==
NULL
?
0
:
1
,
(
WINED3DRECT
*
)
DestRect
,
WINED3DCLEAR_ZBUFFER
,
0x00000000
,
(
float
)
DDBltFx
->
u5
.
dwFillDepth
/
(
float
)
MAXDWORD
,
depth
,
0x00000000
);
}
FIXME
(
"(%p): Unsupp depthstencil blit
\n
"
,
This
);
return
WINED3DERR_INVALIDCALL
;
...
...
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