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
b84d1ce5
Commit
b84d1ce5
authored
Aug 31, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Clippers don't need parents.
parent
7c675b52
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
20 deletions
+7
-20
clipper.c
dlls/ddraw/clipper.c
+1
-1
clipper.c
dlls/wined3d/clipper.c
+3
-15
wined3d.spec
dlls/wined3d/wined3d.spec
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
wined3d.idl
include/wine/wined3d.idl
+2
-2
No files found.
dlls/ddraw/clipper.c
View file @
b84d1ce5
...
...
@@ -309,7 +309,7 @@ HRESULT ddraw_clipper_init(IDirectDrawClipperImpl *clipper)
{
clipper
->
lpVtbl
=
&
ddraw_clipper_vtbl
;
clipper
->
ref
=
1
;
clipper
->
wineD3DClipper
=
pWineDirect3DCreateClipper
(
(
IUnknown
*
)
clipper
);
clipper
->
wineD3DClipper
=
pWineDirect3DCreateClipper
();
if
(
!
clipper
->
wineD3DClipper
)
{
WARN
(
"Failed to create wined3d clipper.
\n
"
);
...
...
dlls/wined3d/clipper.c
View file @
b84d1ce5
...
...
@@ -33,7 +33,6 @@ static HRESULT WINAPI IWineD3DClipperImpl_QueryInterface(IWineD3DClipper *iface,
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
);
if
(
IsEqualGUID
(
riid
,
&
IID_IWineD3DClipper
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBase
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
IUnknown_AddRef
(
iface
);
...
...
@@ -72,16 +71,6 @@ static ULONG WINAPI IWineD3DClipperImpl_Release(IWineD3DClipper *iface)
else
return
ref
;
}
static
HRESULT
WINAPI
IWineD3DClipperImpl_GetParent
(
IWineD3DClipper
*
iface
,
IUnknown
**
Parent
)
{
IWineD3DClipperImpl
*
This
=
(
IWineD3DClipperImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Parent
);
*
Parent
=
This
->
Parent
;
IUnknown_AddRef
(
*
Parent
);
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DClipperImpl_SetHwnd
(
IWineD3DClipper
*
iface
,
DWORD
Flags
,
HWND
hWnd
)
{
IWineD3DClipperImpl
*
This
=
(
IWineD3DClipperImpl
*
)
iface
;
...
...
@@ -176,7 +165,6 @@ static const IWineD3DClipperVtbl IWineD3DClipper_Vtbl =
IWineD3DClipperImpl_QueryInterface
,
IWineD3DClipperImpl_AddRef
,
IWineD3DClipperImpl_Release
,
IWineD3DClipperImpl_GetParent
,
IWineD3DClipperImpl_GetClipList
,
IWineD3DClipperImpl_GetHwnd
,
IWineD3DClipperImpl_IsClipListChanged
,
...
...
@@ -184,11 +172,12 @@ static const IWineD3DClipperVtbl IWineD3DClipper_Vtbl =
IWineD3DClipperImpl_SetHwnd
};
IWineD3DClipper
*
WINAPI
WineDirect3DCreateClipper
(
IUnknown
*
Parent
)
IWineD3DClipper
*
WINAPI
WineDirect3DCreateClipper
(
void
)
{
IWineD3DClipperImpl
*
obj
;
TRACE
(
"Creating clipper, parent %p
\n
"
,
Parent
);
TRACE
(
"
\n
"
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
obj
));
if
(
!
obj
)
{
...
...
@@ -197,7 +186,6 @@ IWineD3DClipper* WINAPI WineDirect3DCreateClipper(IUnknown *Parent)
}
obj
->
lpVtbl
=
&
IWineD3DClipper_Vtbl
;
obj
->
Parent
=
Parent
;
IWineD3DClipper_AddRef
((
IWineD3DClipper
*
)
obj
);
return
(
IWineD3DClipper
*
)
obj
;
...
...
dlls/wined3d/wined3d.spec
View file @
b84d1ce5
@ stdcall WineDirect3DCreate(long ptr)
@ stdcall WineDirect3DCreateClipper(
ptr
)
@ stdcall WineDirect3DCreateClipper()
@ stdcall wined3d_mutex_lock()
@ stdcall wined3d_mutex_unlock()
dlls/wined3d/wined3d_private.h
View file @
b84d1ce5
...
...
@@ -2001,7 +2001,6 @@ typedef struct IWineD3DClipperImpl
const
IWineD3DClipperVtbl
*
lpVtbl
;
LONG
ref
;
IUnknown
*
Parent
;
HWND
hWnd
;
}
IWineD3DClipperImpl
;
...
...
include/wine/wined3d.idl
View file @
b84d1ce5
...
...
@@ -2344,7 +2344,7 @@ interface IWineD3DPalette : IWineD3DBase
local
,
uuid
(
8
f2bceb1
-
d338
-
488
c
-
ab7f
-
0
ec980bf5d2d
)
]
interface
IWineD3DClipper
:
I
WineD3DBase
interface
IWineD3DClipper
:
I
Unknown
{
HRESULT
GetClipList
(
[
in
]
const
RECT
*
rect
,
...
...
@@ -3389,6 +3389,6 @@ interface IWineD3DDevice : IUnknown
}
IWineD3D
*
__stdcall
WineDirect3DCreate
(
UINT
dxVersion
,
IUnknown
*
parent
)
;
IWineD3DClipper
*
__stdcall
WineDirect3DCreateClipper
(
IUnknown
*
parent
)
;
IWineD3DClipper
*
__stdcall
WineDirect3DCreateClipper
(
void
)
;
void
__stdcall
wined3d_mutex_lock
(
void
)
;
void
__stdcall
wined3d_mutex_unlock
(
void
)
;
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