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
921bd1bf
Commit
921bd1bf
authored
Aug 18, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Add a separate function for viewport initialization.
parent
bf26c2c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
ddraw.c
dlls/ddraw/ddraw.c
+1
-4
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-3
viewport.c
dlls/ddraw/viewport.c
+9
-1
No files found.
dlls/ddraw/ddraw.c
View file @
921bd1bf
...
...
@@ -4505,10 +4505,7 @@ static HRESULT WINAPI d3d3_CreateViewport(IDirect3D3 *iface, IDirect3DViewport3
return
DDERR_OUTOFMEMORY
;
}
object
->
lpVtbl
=
&
IDirect3DViewport3_Vtbl
;
object
->
ref
=
1
;
object
->
ddraw
=
ddraw_from_d3d3
(
iface
);
object
->
use_vp2
=
0xff
;
d3d_viewport_init
(
object
,
ddraw_from_d3d3
(
iface
));
TRACE
(
"Created viewport %p.
\n
"
,
object
);
*
viewport
=
(
IDirect3DViewport3
*
)
object
;
...
...
dlls/ddraw/ddraw_private.h
View file @
921bd1bf
...
...
@@ -587,11 +587,9 @@ struct IDirect3DViewportImpl
IDirect3DMaterialImpl
*
background
;
};
/* Vtable */
extern
const
IDirect3DViewport3Vtbl
IDirect3DViewport3_Vtbl
DECLSPEC_HIDDEN
;
/* Helper functions */
void
viewport_activate
(
IDirect3DViewportImpl
*
This
,
BOOL
ignore_lights
)
DECLSPEC_HIDDEN
;
void
d3d_viewport_init
(
IDirect3DViewportImpl
*
viewport
,
IDirectDrawImpl
*
ddraw
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IDirect3DExecuteBuffer - Wraps to D3D7
...
...
dlls/ddraw/viewport.c
View file @
921bd1bf
...
...
@@ -1078,7 +1078,7 @@ IDirect3DViewportImpl_Clear2(IDirect3DViewport3 *iface,
* The VTable
*****************************************************************************/
const
IDirect3DViewport3Vtbl
IDirect3DViewport3_V
tbl
=
static
const
struct
IDirect3DViewport3Vtbl
d3d_viewport_v
tbl
=
{
/*** IUnknown Methods ***/
IDirect3DViewportImpl_QueryInterface
,
...
...
@@ -1106,3 +1106,11 @@ const IDirect3DViewport3Vtbl IDirect3DViewport3_Vtbl =
IDirect3DViewportImpl_GetBackgroundDepth2
,
IDirect3DViewportImpl_Clear2
,
};
void
d3d_viewport_init
(
IDirect3DViewportImpl
*
viewport
,
IDirectDrawImpl
*
ddraw
)
{
viewport
->
lpVtbl
=
&
d3d_viewport_vtbl
;
viewport
->
ref
=
1
;
viewport
->
ddraw
=
ddraw
;
viewport
->
use_vp2
=
0xff
;
}
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