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
fee9c1f2
Commit
fee9c1f2
authored
Aug 17, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove a useless viewport callback.
parent
14399f61
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
16 deletions
+14
-16
ddraw.c
dlls/ddraw/ddraw.c
+0
-1
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-3
device.c
dlls/ddraw/device.c
+1
-1
executebuffer.c
dlls/ddraw/executebuffer.c
+1
-1
viewport.c
dlls/ddraw/viewport.c
+12
-10
No files found.
dlls/ddraw/ddraw.c
View file @
fee9c1f2
...
...
@@ -4533,7 +4533,6 @@ static HRESULT WINAPI d3d3_CreateViewport(IDirect3D3 *iface, IDirect3DViewport3
object
->
ref
=
1
;
object
->
ddraw
=
ddraw_from_d3d3
(
iface
);
object
->
use_vp2
=
0xff
;
object
->
activate
=
viewport_activate
;
TRACE
(
"Created viewport %p.
\n
"
,
object
);
*
viewport
=
(
IDirect3DViewport3
*
)
object
;
...
...
dlls/ddraw/ddraw_private.h
View file @
fee9c1f2
...
...
@@ -585,9 +585,6 @@ struct IDirect3DViewportImpl
D3DVIEWPORT2
vp2
;
}
viewports
;
/* Activation function */
void
(
*
activate
)(
IDirect3DViewportImpl
*
,
BOOL
);
/* Field used to chain viewports together */
IDirect3DViewportImpl
*
next
;
...
...
dlls/ddraw/device.c
View file @
fee9c1f2
...
...
@@ -1872,7 +1872,7 @@ IDirect3DDeviceImpl_3_SetCurrentViewport(IDirect3DDevice3 *iface,
/* Activate this viewport */
This
->
current_viewport
->
active_device
=
This
;
This
->
current_viewport
->
activate
(
This
->
current_viewport
,
FALSE
);
viewport_
activate
(
This
->
current_viewport
,
FALSE
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
D3D_OK
;
...
...
dlls/ddraw/executebuffer.c
View file @
fee9c1f2
...
...
@@ -103,7 +103,7 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
/* Activate the viewport */
lpViewport
->
active_device
=
lpDevice
;
lpViewport
->
activate
(
lpViewport
,
FALSE
);
viewport_
activate
(
lpViewport
,
FALSE
);
TRACE
(
"ExecuteData :
\n
"
);
if
(
TRACE_ON
(
d3d7
))
...
...
dlls/ddraw/viewport.c
View file @
fee9c1f2
...
...
@@ -325,8 +325,9 @@ IDirect3DViewportImpl_SetViewport(IDirect3DViewport3 *iface,
if
(
This
->
active_device
)
{
IDirect3DDevice3
*
d3d_device3
=
(
IDirect3DDevice3
*
)
&
This
->
active_device
->
IDirect3DDevice3_vtbl
;
IDirect3DDevice3_GetCurrentViewport
(
d3d_device3
,
&
current_viewport
);
if
(
current_viewport
)
{
if
((
IDirect3DViewportImpl
*
)
current_viewport
==
This
)
This
->
activate
(
This
,
FALSE
);
if
(
current_viewport
)
{
if
((
IDirect3DViewportImpl
*
)
current_viewport
==
This
)
viewport_activate
(
This
,
FALSE
);
IDirect3DViewport3_Release
(
current_viewport
);
}
}
...
...
@@ -697,7 +698,7 @@ static HRESULT WINAPI IDirect3DViewportImpl_Clear(IDirect3DViewport3 *iface,
/* Need to temporarily activate viewport to clear it. Previously active one will be restored
afterwards. */
This
->
activate
(
This
,
TRUE
);
viewport_
activate
(
This
,
TRUE
);
hr
=
IDirect3DDevice7_Clear
((
IDirect3DDevice7
*
)
This
->
active_device
,
dwCount
,
lpRects
,
dwFlags
&
(
D3DCLEAR_ZBUFFER
|
D3DCLEAR_TARGET
),
color
,
1
.
0
,
0x00000000
);
...
...
@@ -705,7 +706,7 @@ static HRESULT WINAPI IDirect3DViewportImpl_Clear(IDirect3DViewport3 *iface,
IDirect3DDevice3_GetCurrentViewport
(
d3d_device3
,
&
current_viewport
);
if
(
current_viewport
)
{
IDirect3DViewportImpl
*
vp
=
(
IDirect3DViewportImpl
*
)
current_viewport
;
v
p
->
activate
(
vp
,
TRUE
);
v
iewport_
activate
(
vp
,
TRUE
);
IDirect3DViewport3_Release
(
current_viewport
);
}
...
...
@@ -978,8 +979,9 @@ IDirect3DViewportImpl_SetViewport2(IDirect3DViewport3 *iface,
if
(
This
->
active_device
)
{
IDirect3DDevice3
*
d3d_device3
=
(
IDirect3DDevice3
*
)
&
This
->
active_device
->
IDirect3DDevice3_vtbl
;
IDirect3DDevice3_GetCurrentViewport
(
d3d_device3
,
&
current_viewport
);
if
(
current_viewport
)
{
if
((
IDirect3DViewportImpl
*
)
current_viewport
==
This
)
This
->
activate
(
This
,
FALSE
);
if
(
current_viewport
)
{
if
((
IDirect3DViewportImpl
*
)
current_viewport
==
This
)
viewport_activate
(
This
,
FALSE
);
IDirect3DViewport3_Release
(
current_viewport
);
}
}
...
...
@@ -1074,16 +1076,16 @@ IDirect3DViewportImpl_Clear2(IDirect3DViewport3 *iface,
return
D3DERR_VIEWPORTHASNODEVICE
;
}
d3d_device3
=
(
IDirect3DDevice3
*
)
&
This
->
active_device
->
IDirect3DDevice3_vtbl
;
/* Need to temporarily activate viewport to clear it. Previously active
one will be restored
afterwards. */
This
->
activate
(
This
,
TRUE
);
/* Need to temporarily activate viewport to clear it. Previously active
* one will be restored
afterwards. */
viewport_
activate
(
This
,
TRUE
);
hr
=
IDirect3DDevice7_Clear
((
IDirect3DDevice7
*
)
This
->
active_device
,
dwCount
,
lpRects
,
dwFlags
,
dwColor
,
dvZ
,
dwStencil
);
IDirect3DDevice3_GetCurrentViewport
(
d3d_device3
,
&
current_viewport
);
if
(
current_viewport
)
{
IDirect3DViewportImpl
*
vp
=
(
IDirect3DViewportImpl
*
)
current_viewport
;
v
p
->
activate
(
vp
,
TRUE
);
v
iewport_
activate
(
vp
,
TRUE
);
IDirect3DViewport3_Release
(
current_viewport
);
}
LeaveCriticalSection
(
&
ddraw_cs
);
...
...
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