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
b0485d5b
Commit
b0485d5b
authored
Jan 23, 1999
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jan 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- various warning and bug fixes
parent
1d3e501e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
d3dmaterial.c
graphics/d3dmaterial.c
+2
-0
d3dviewport.c
graphics/d3dviewport.c
+14
-2
No files found.
graphics/d3dmaterial.c
View file @
b0485d5b
...
...
@@ -52,6 +52,8 @@ static void activate(LPDIRECT3DMATERIAL2 this) {
TRACE
(
ddraw
,
"Size : %ld
\n
"
,
this
->
mat
.
dwSize
);
TRACE
(
ddraw
,
"Power : %f
\n
"
,
this
->
mat
.
e
.
power
);
TRACE
(
ddraw
,
"Texture handle : %p
\n
"
,
this
->
mat
.
hTexture
);
return
;
}
...
...
graphics/d3dviewport.c
View file @
b0485d5b
...
...
@@ -147,6 +147,18 @@ static HRESULT WINAPI IDirect3DViewport2_SetViewport(LPDIRECT3DVIEWPORT2 this,
this
->
use_vp2
=
0
;
this
->
viewport
.
vp1
=
*
lpvp
;
TRACE
(
ddraw
,
"dwSize = %ld dwX = %ld dwY = %ld
\n
"
,
lpvp
->
dwSize
,
lpvp
->
dwX
,
lpvp
->
dwY
);
TRACE
(
ddraw
,
"dwWidth = %ld dwHeight = %ld
\n
"
,
lpvp
->
dwWidth
,
lpvp
->
dwHeight
);
TRACE
(
ddraw
,
"dvScaleX = %f dvScaleY = %f
\n
"
,
lpvp
->
dvScaleX
,
lpvp
->
dvScaleY
);
TRACE
(
ddraw
,
"dvMaxX = %f dvMaxY = %f
\n
"
,
lpvp
->
dvMaxX
,
lpvp
->
dvMaxY
);
TRACE
(
ddraw
,
"dvMinZ = %f dvMaxZ = %f
\n
"
,
lpvp
->
dvMinZ
,
lpvp
->
dvMaxZ
);
return
DD_OK
;
}
...
...
@@ -174,7 +186,7 @@ static HRESULT WINAPI IDirect3DViewport2_LightElements(LPDIRECT3DVIEWPORT2 this,
static
HRESULT
WINAPI
IDirect3DViewport2_SetBackground
(
LPDIRECT3DVIEWPORT2
this
,
D3DMATERIALHANDLE
hMat
)
{
FIXME
(
ddraw
,
"(%p)->(%08
x): stub
\n
"
,
this
,
hMat
);
FIXME
(
ddraw
,
"(%p)->(%08
lx): stub
\n
"
,
this
,
(
DWORD
)
hMat
);
return
DD_OK
;
}
...
...
@@ -220,13 +232,13 @@ static HRESULT WINAPI IDirect3DViewport2_Clear(LPDIRECT3DVIEWPORT2 this,
this
->
device
.
active_device2
->
set_context
(
this
->
device
.
active_device2
);
else
this
->
device
.
active_device1
->
set_context
(
this
->
device
.
active_device1
);
}
/* Clears the screen */
glGetBooleanv
(
GL_DEPTH_TEST
,
&
ztest
);
glDepthMask
(
GL_TRUE
);
/* Enables Z writing to be sure to delete also the Z buffer */
glClear
(
GL_COLOR_BUFFER_BIT
|
GL_DEPTH_BUFFER_BIT
);
glDepthMask
(
ztest
);
}
return
DD_OK
;
}
...
...
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