Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5f2987ae
Commit
5f2987ae
authored
Oct 10, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Merge VIEWPORT types into one type in WINED3D namespace.
parent
90f5be2b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
9 deletions
+24
-9
device.c
dlls/d3d8/device.c
+2
-0
device.c
dlls/d3d9/device.c
+4
-0
device.c
dlls/ddraw/device.c
+5
-2
device.c
dlls/wined3d/device.c
+2
-2
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
wined3d_interface.h
include/wine/wined3d_interface.h
+0
-3
wined3d_types.h
include/wine/wined3d_types.h
+9
-0
No files found.
dlls/d3d8/device.c
View file @
5f2987ae
...
...
@@ -697,6 +697,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetViewport(LPDIRECT3DDEVICE8 iface,
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* Note: D3DVIEWPORT8 is compatible with WINED3DVIEWPORT */
return
IWineD3DDevice_SetViewport
(
This
->
WineD3DDevice
,
(
const
WINED3DVIEWPORT
*
)
pViewport
);
}
...
...
@@ -704,6 +705,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetViewport(LPDIRECT3DDEVICE8 iface,
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* Note: D3DVIEWPORT8 is compatible with WINED3DVIEWPORT */
return
IWineD3DDevice_GetViewport
(
This
->
WineD3DDevice
,
(
WINED3DVIEWPORT
*
)
pViewport
);
}
...
...
dlls/d3d9/device.c
View file @
5f2987ae
...
...
@@ -480,12 +480,16 @@ static HRESULT WINAPI IDirect3DDevice9Impl_MultiplyTransform(LPDIRECT3DDEVICE9
static
HRESULT
WINAPI
IDirect3DDevice9Impl_SetViewport
(
LPDIRECT3DDEVICE9
iface
,
CONST
D3DVIEWPORT9
*
pViewport
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* Note: D3DVIEWPORT9 is compatible with WINED3DVIEWPORT */
return
IWineD3DDevice_SetViewport
(
This
->
WineD3DDevice
,
(
const
WINED3DVIEWPORT
*
)
pViewport
);
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_GetViewport
(
LPDIRECT3DDEVICE9
iface
,
D3DVIEWPORT9
*
pViewport
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* Note: D3DVIEWPORT9 is compatible with WINED3DVIEWPORT */
return
IWineD3DDevice_GetViewport
(
This
->
WineD3DDevice
,
(
WINED3DVIEWPORT
*
)
pViewport
);
}
...
...
dlls/ddraw/device.c
View file @
5f2987ae
...
...
@@ -4035,8 +4035,9 @@ IDirect3DDeviceImpl_7_SetViewport(IDirect3DDevice7 *iface,
if
(
!
Data
)
return
DDERR_INVALIDPARAMS
;
/* Note: D3DVIEWPORT7 is compatible with WINED3DVIEWPORT */
return
IWineD3DDevice_SetViewport
(
This
->
wineD3DDevice
,
Data
);
(
WINED3DVIEWPORT
*
)
Data
);
}
/*****************************************************************************
...
...
@@ -4066,8 +4067,10 @@ IDirect3DDeviceImpl_7_GetViewport(IDirect3DDevice7 *iface,
if
(
!
Data
)
return
DDERR_INVALIDPARAMS
;
/* Note: D3DVIEWPORT7 is compatible with WINED3DVIEWPORT */
hr
=
IWineD3DDevice_GetViewport
(
This
->
wineD3DDevice
,
Data
);
(
WINED3DVIEWPORT
*
)
Data
);
return
hr_ddraw_from_wined3d
(
hr
);
}
...
...
dlls/wined3d/device.c
View file @
5f2987ae
...
...
@@ -2114,7 +2114,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
list_init
(
&
This
->
glsl_shader_progs
);
{
/* Set a default viewport */
D3DVIEWPORT9
vp
;
WINED3DVIEWPORT
vp
;
vp
.
X
=
0
;
vp
.
Y
=
0
;
vp
.
Width
=
*
(
pPresentationParameters
->
BackBufferWidth
);
...
...
@@ -5083,7 +5083,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo
char
*
dest_ptr
,
*
dest_conv
=
NULL
;
unsigned
int
i
;
DWORD
DestFVF
=
dest
->
fvf
;
D3DVIEWPORT9
vp
;
WINED3DVIEWPORT
vp
;
D3DMATRIX
mat
,
proj_mat
,
view_mat
,
world_mat
;
BOOL
doClip
;
int
numTextures
;
...
...
dlls/wined3d/stateblock.c
View file @
5f2987ae
...
...
@@ -527,9 +527,9 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface)
if
(
This
->
set
.
viewport
&&
memcmp
(
&
targetStateBlock
->
viewport
,
&
This
->
viewport
,
sizeof
(
D3DVIEWPORT9
))
!=
0
)
{
sizeof
(
WINED3DVIEWPORT
))
!=
0
)
{
TRACE
(
"Updating viewport
\n
"
);
memcpy
(
&
This
->
viewport
,
&
targetStateBlock
->
viewport
,
sizeof
(
D3DVIEWPORT9
));
memcpy
(
&
This
->
viewport
,
&
targetStateBlock
->
viewport
,
sizeof
(
WINED3DVIEWPORT
));
}
for
(
i
=
0
;
i
<
MAX_STREAMS
;
i
++
)
{
...
...
include/wine/wined3d_interface.h
View file @
5f2987ae
...
...
@@ -191,17 +191,14 @@ DEFINE_GUID(IID_IWineD3DQuery,
/* TODO: remove the d3d8/d3d9 dependencies by making a all inclusive WINED3D version */
#if defined( __WINE_D3D9_H )
/* Identical: */
# define WINED3DVIEWPORT D3DVIEWPORT9
# define WINED3DGAMMARAMP D3DGAMMARAMP
#elif defined( __WINE_D3D8_H )
/* Identical: */
# define WINED3DVIEWPORT D3DVIEWPORT8
# define WINED3DGAMMARAMP D3DGAMMARAMP
#else
/* defined (__WINE_D3D_H ) */
/* Identical: */
# define WINED3DVIEWPORT D3DVIEWPORT7
# define WINED3DGAMMARAMP DDGAMMARAMP
#endif
...
...
include/wine/wined3d_types.h
View file @
5f2987ae
...
...
@@ -76,6 +76,15 @@ typedef struct _WINED3DMATERIAL {
float
Power
;
}
WINED3DMATERIAL
;
typedef
struct
_WINED3DVIEWPORT
{
DWORD
X
;
DWORD
Y
;
DWORD
Width
;
DWORD
Height
;
float
MinZ
;
float
MaxZ
;
}
WINED3DVIEWPORT
;
#define WINED3D_VSHADER_MAX_CONSTANTS 96
#define WINED3D_PSHADER_MAX_CONSTANTS 32
...
...
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