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
5ab7b75c
Commit
5ab7b75c
authored
May 27, 2012
by
André Hentschel
Committed by
Alexandre Julliard
May 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement width and height handling in device interfaces.
parent
2ab69db4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
14 deletions
+23
-14
device.c
dlls/d3drm/device.c
+23
-14
No files found.
dlls/d3drm/device.c
View file @
5ab7b75c
...
...
@@ -42,6 +42,8 @@ typedef struct {
BOOL
dither
;
D3DRMRENDERQUALITY
quality
;
DWORD
rendermode
;
DWORD
height
;
DWORD
width
;
}
IDirect3DRMDeviceImpl
;
static
inline
IDirect3DRMDeviceImpl
*
impl_from_IDirect3DRMDevice2
(
IDirect3DRMDevice2
*
iface
)
...
...
@@ -204,9 +206,9 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_Init(IDirect3DRMDevice2* iface, ULO
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
FIXME
(
"(%p/%p)->(%u, %u): stub
\n
"
,
iface
,
This
,
width
,
height
);
TRACE
(
"(%p/%p)->(%u, %u)
\n
"
,
iface
,
This
,
width
,
height
);
return
E_NOTIMPL
;
return
IDirect3DRMDevice3_Init
(
&
This
->
IDirect3DRMDevice3_iface
,
width
,
height
)
;
}
/*** IDirect3DRMDevice2 methods ***/
...
...
@@ -227,9 +229,10 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_InitFromClipper(IDirect3DRMDevice2*
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
FIXME
(
"(%p/%p)->(%p, %p, %u, %u): stub
\n
"
,
iface
,
This
,
lpDDClipper
,
lpGUID
,
width
,
height
);
TRACE
(
"(%p/%p)->(%p, %p, %u, %u)
\n
"
,
iface
,
This
,
lpDDClipper
,
lpGUID
,
width
,
height
);
return
E_NOTIMPL
;
return
IDirect3DRMDevice3_InitFromClipper
(
&
This
->
IDirect3DRMDevice3_iface
,
lpDDClipper
,
lpGUID
,
width
,
height
);
}
static
HRESULT
WINAPI
IDirect3DRMDevice2Impl_Update
(
IDirect3DRMDevice2
*
iface
)
...
...
@@ -350,18 +353,18 @@ static DWORD WINAPI IDirect3DRMDevice2Impl_GetHeight(IDirect3DRMDevice2* iface)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
FIXME
(
"(%p/%p)->(): stub
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)->()
\n
"
,
iface
,
This
);
return
E_NOTIMPL
;
return
IDirect3DRMDevice3_GetHeight
(
&
This
->
IDirect3DRMDevice3_iface
)
;
}
static
DWORD
WINAPI
IDirect3DRMDevice2Impl_GetWidth
(
IDirect3DRMDevice2
*
iface
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
FIXME
(
"(%p/%p)->(): stub
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)->()
\n
"
,
iface
,
This
);
return
E_NOTIMPL
;
return
IDirect3DRMDevice3_GetWidth
(
&
This
->
IDirect3DRMDevice3_iface
)
;
}
static
DWORD
WINAPI
IDirect3DRMDevice2Impl_GetTrianglesDrawn
(
IDirect3DRMDevice2
*
iface
)
...
...
@@ -627,7 +630,10 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_Init(IDirect3DRMDevice3* iface, ULO
FIXME
(
"(%p/%p)->(%u, %u): stub
\n
"
,
iface
,
This
,
width
,
height
);
return
E_NOTIMPL
;
This
->
height
=
height
;
This
->
width
=
width
;
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_InitFromD3D
(
IDirect3DRMDevice3
*
iface
,
...
...
@@ -649,7 +655,10 @@ static HRESULT WINAPI IDirect3DRMDevice3Impl_InitFromClipper(IDirect3DRMDevice3*
FIXME
(
"(%p/%p)->(%p, %p, %u, %u): stub
\n
"
,
iface
,
This
,
lpDDClipper
,
lpGUID
,
width
,
height
);
return
E_NOTIMPL
;
This
->
height
=
height
;
This
->
width
=
width
;
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMDevice3Impl_Update
(
IDirect3DRMDevice3
*
iface
)
...
...
@@ -774,18 +783,18 @@ static DWORD WINAPI IDirect3DRMDevice3Impl_GetHeight(IDirect3DRMDevice3* iface)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
FIXME
(
"(%p/%p)->(): stub
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)->()
\n
"
,
iface
,
This
);
return
E_NOTIMPL
;
return
This
->
height
;
}
static
DWORD
WINAPI
IDirect3DRMDevice3Impl_GetWidth
(
IDirect3DRMDevice3
*
iface
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice3
(
iface
);
FIXME
(
"(%p/%p)->(): stub
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)->()
\n
"
,
iface
,
This
);
return
E_NOTIMPL
;
return
This
->
width
;
}
static
DWORD
WINAPI
IDirect3DRMDevice3Impl_GetTrianglesDrawn
(
IDirect3DRMDevice3
*
iface
)
...
...
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