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
24acd7c8
Commit
24acd7c8
authored
Apr 19, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Avoid LPDIRECT3DRMVIEWPORT.
parent
2e7add90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
d3drm.c
dlls/d3drm/tests/d3drm.c
+7
-7
d3drmobj.h
include/d3drmobj.h
+1
-1
No files found.
dlls/d3drm/tests/d3drm.c
View file @
24acd7c8
...
...
@@ -1008,7 +1008,7 @@ static void test_Viewport(void)
IDirect3DRM
*
d3drm
;
IDirect3DRMDevice
*
device
;
LPDIRECT3DRMFRAME
pFrame
;
LPDIRECT3DRMVIEWPORT
pV
iewport
;
IDirect3DRMViewport
*
v
iewport
;
GUID
driver
;
HWND
window
;
RECT
rc
;
...
...
@@ -1034,23 +1034,23 @@ static void test_Viewport(void)
hr
=
IDirect3DRM_CreateFrame
(
d3drm
,
NULL
,
&
pFrame
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMFrame interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRM_CreateViewport
(
d3drm
,
device
,
pFrame
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
&
pV
iewport
);
hr
=
IDirect3DRM_CreateViewport
(
d3drm
,
device
,
pFrame
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
&
v
iewport
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMViewport interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMViewport_GetClassName
(
pV
iewport
,
NULL
,
cname
);
hr
=
IDirect3DRMViewport_GetClassName
(
v
iewport
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMViewport_GetClassName
(
pV
iewport
,
NULL
,
NULL
);
hr
=
IDirect3DRMViewport_GetClassName
(
v
iewport
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
1
;
hr
=
IDirect3DRMViewport_GetClassName
(
pV
iewport
,
&
size
,
cname
);
hr
=
IDirect3DRMViewport_GetClassName
(
v
iewport
,
&
size
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
sizeof
(
cname
);
hr
=
IDirect3DRMViewport_GetClassName
(
pV
iewport
,
&
size
,
cname
);
hr
=
IDirect3DRMViewport_GetClassName
(
v
iewport
,
&
size
,
cname
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get classname (hr = %x)
\n
"
,
hr
);
ok
(
size
==
sizeof
(
"Viewport"
),
"wrong size: %u
\n
"
,
size
);
ok
(
!
strcmp
(
cname
,
"Viewport"
),
"Expected cname to be
\"
Viewport
\"
, but got
\"
%s
\"\n
"
,
cname
);
IDirect3DRMViewport_Release
(
pV
iewport
);
IDirect3DRMViewport_Release
(
v
iewport
);
IDirect3DRMFrame_Release
(
pFrame
);
IDirect3DRMDevice_Release
(
device
);
IDirectDrawClipper_Release
(
pClipper
);
...
...
include/d3drmobj.h
View file @
24acd7c8
...
...
@@ -4293,7 +4293,7 @@ DECLARE_INTERFACE_(IDirect3DRMViewportArray, IDirect3DRMArray)
/*** IDirect3DRMArray methods ***/
STDMETHOD_
(
DWORD
,
GetSize
)(
THIS
)
PURE
;
/*** IDirect3DRMViewportArray methods ***/
STDMETHOD
(
GetElement
)(
THIS_
DWORD
index
,
LPDIRECT3DRMVIEWPORT
*
)
PURE
;
STDMETHOD
(
GetElement
)(
THIS_
DWORD
index
,
IDirect3DRMViewport
**
element
)
PURE
;
};
#undef INTERFACE
...
...
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