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
42b9221f
Commit
42b9221f
authored
Apr 17, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add the remaining DirectDraw methods to WineD3DSurface.
parent
80bdb24c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
1 deletion
+89
-1
surface.c
dlls/wined3d/surface.c
+67
-1
wined3d_interface.h
include/wine/wined3d_interface.h
+22
-0
No files found.
dlls/wined3d/surface.c
View file @
42b9221f
...
...
@@ -1455,6 +1455,61 @@ HRESULT WINAPI IWineD3DSurfaceImpl_Blt(IWineD3DSurface *iface, RECT *DestRect, I
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetBltStatus
(
IWineD3DSurface
*
iface
,
DWORD
Flags
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetFlipStatus
(
IWineD3DSurface
*
iface
,
DWORD
Flags
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_IsLost
(
IWineD3DSurface
*
iface
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_Restore
(
IWineD3DSurface
*
iface
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_BltFast
(
IWineD3DSurface
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
IWineD3DSurface
*
Source
,
RECT
*
rsrc
,
DWORD
trans
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_SetPixelFormat
(
IWineD3DSurface
*
iface
,
WINED3DFORMAT
Format
,
BYTE
*
Surface
,
DWORD
Size
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_GetPalette
(
IWineD3DSurface
*
iface
,
IWineD3DPalette
**
Pal
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_RealizePalette
(
IWineD3DSurface
*
iface
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_SetPalette
(
IWineD3DSurface
*
iface
,
IWineD3DPalette
*
Pal
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_SetColorKey
(
IWineD3DSurface
*
iface
,
DWORD
Flags
,
DDCOLORKEY
*
CKey
)
{
FIXME
(
"This is unimplemented for now(d3d7 merge)
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_PrivateSetup
(
IWineD3DSurface
*
iface
)
{
/* Nothing to do for now */
return
WINED3D_OK
;
}
const
IWineD3DSurfaceVtbl
IWineD3DSurface_Vtbl
=
{
/* IUnknown */
...
...
@@ -1481,6 +1536,16 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DSurfaceImpl_ReleaseDC
,
IWineD3DSurfaceImpl_Flip
,
IWineD3DSurfaceImpl_Blt
,
IWineD3DSurfaceImpl_GetBltStatus
,
IWineD3DSurfaceImpl_GetFlipStatus
,
IWineD3DSurfaceImpl_IsLost
,
IWineD3DSurfaceImpl_Restore
,
IWineD3DSurfaceImpl_BltFast
,
IWineD3DSurfaceImpl_SetPixelFormat
,
IWineD3DSurfaceImpl_GetPalette
,
IWineD3DSurfaceImpl_SetPalette
,
IWineD3DSurfaceImpl_RealizePalette
,
IWineD3DSurfaceImpl_SetColorKey
,
/* Internal use: */
IWineD3DSurfaceImpl_CleanDirtyRect
,
IWineD3DSurfaceImpl_AddDirtyRect
,
...
...
@@ -1491,5 +1556,6 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DSurfaceImpl_SetGlTextureDesc
,
IWineD3DSurfaceImpl_GetGlDesc
,
IWineD3DSurfaceImpl_GetData
,
IWineD3DSurfaceImpl_SetFormat
IWineD3DSurfaceImpl_SetFormat
,
IWineD3DSurfaceImpl_PrivateSetup
};
include/wine/wined3d_interface.h
View file @
42b9221f
...
...
@@ -1140,6 +1140,16 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
STDMETHOD
(
ReleaseDC
)(
THIS_
HDC
hdc
)
PURE
;
STDMETHOD
(
Flip
)(
THIS_
IWineD3DSurface
*
Override
,
DWORD
FLAGS
)
PURE
;
STDMETHOD
(
Blt
)(
THIS_
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
RECT
*
SrcRect
,
DWORD
Flags
,
DDBLTFX
*
DDBltFx
)
PURE
;
STDMETHOD
(
GetBltStatus
)(
THIS_
DWORD
Flags
)
PURE
;
STDMETHOD
(
GetFlipStatus
)(
THIS_
DWORD
Flags
)
PURE
;
STDMETHOD
(
IsLost
)(
THIS
)
PURE
;
STDMETHOD
(
Restore
)(
THIS
)
PURE
;
STDMETHOD
(
BltFast
)(
THIS_
DWORD
dstx
,
DWORD
dsty
,
IWineD3DSurface
*
src
,
RECT
*
rsrc
,
DWORD
trans
)
PURE
;
STDMETHOD
(
SetPixelFormat
)(
THIS_
WINED3DFORMAT
Format
,
BYTE
*
Surface
,
DWORD
Size
)
PURE
;
STDMETHOD
(
GetPalette
)(
THIS_
struct
IWineD3DPalette
**
Palette
)
PURE
;
STDMETHOD
(
SetPalette
)(
THIS_
struct
IWineD3DPalette
*
Palette
)
PURE
;
STDMETHOD
(
RealizePalette
)(
THIS
)
PURE
;
STDMETHOD
(
SetColorKey
)(
THIS_
DWORD
Flags
,
DDCOLORKEY
*
CKey
)
PURE
;
/* Internally used methods */
STDMETHOD
(
CleanDirtyRect
)(
THIS
)
PURE
;
STDMETHOD
(
AddDirtyRect
)(
THIS_
CONST
RECT
*
pRect
)
PURE
;
...
...
@@ -1151,6 +1161,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
STDMETHOD_
(
void
,
GetGlDesc
)(
THIS_
glDescriptor
**
glDescription
)
PURE
;
STDMETHOD_
(
CONST
void
*
,
GetData
)(
THIS
)
PURE
;
STDMETHOD
(
SetFormat
)(
THIS_
WINED3DFORMAT
format
)
PURE
;
STDMETHOD
(
PrivateSetup
)(
THIS
)
PURE
;
};
#undef INTERFACE
...
...
@@ -1180,6 +1191,16 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
#define IWineD3DSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
#define IWineD3DSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
#define IWineD3DSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
#define IWineD3DSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
#define IWineD3DSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
#define IWineD3DSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
#define IWineD3DSurface_Restore(p) (p)->lpVtbl->Restore(p)
#define IWineD3DSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
#define IWineD3DSurface_SetPixelFormat(p,a,b,c) (p)->lpVtbl->SetPixelFormat(p,a,b,c)
#define IWineD3DSurface_GetPalette(p, a) (p)->lpVtbl->GetPalette(p, a)
#define IWineD3DSurface_SetPalette(p, a) (p)->lpVtbl->SetPalette(p, a)
#define IWineD3DSurface_RealizePalette(p) (p)->lpVtbl->RealizePalette(p)
#define IWineD3DSurface_SetColorKey(p, a, b) (p)->lpVtbl->SetColorKey(p, a, b)
/*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
#define IWineD3DSurface_CleanDirtyRect(p) (p)->lpVtbl->CleanDirtyRect(p)
#define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
...
...
@@ -1191,6 +1212,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
#define IWineD3DSurface_GetGlDesc(p,a) (p)->lpVtbl->GetGlDesc(p,a)
#define IWineD3DSurface_GetData(p) (p)->lpVtbl->GetData(p)
#define IWineD3DSurface_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
#define IWineD3DSurface_PrivateSetup(p) (p)->lpVtbl->PrivateSetup(p)
#endif
/*****************************************************************************
...
...
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