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
84d50f73
Commit
84d50f73
authored
Apr 15, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove IWineD3DSurface::GetImplType() from the public interface.
parent
52edf556
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
15 deletions
+4
-15
surface.c
dlls/wined3d/surface.c
+2
-11
surface_base.c
dlls/wined3d/surface_base.c
+1
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
wined3d.idl
include/wine/wined3d.idl
+0
-2
No files found.
dlls/wined3d/surface.c
View file @
84d50f73
...
...
@@ -4891,10 +4891,6 @@ HRESULT surface_load_location(IWineD3DSurfaceImpl *surface, DWORD flag, const RE
return
WINED3D_OK
;
}
static
WINED3DSURFTYPE
WINAPI
IWineD3DSurfaceImpl_GetImplType
(
IWineD3DSurface
*
iface
)
{
return
SURFACE_OPENGL
;
}
BOOL
surface_is_offscreen
(
IWineD3DSurfaceImpl
*
surface
)
{
struct
wined3d_swapchain
*
swapchain
=
surface
->
container
.
u
.
swapchain
;
...
...
@@ -4952,7 +4948,6 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
/* Internal use: */
IWineD3DSurfaceImpl_SetFormat
,
IWineD3DSurfaceImpl_PrivateSetup
,
IWineD3DSurfaceImpl_GetImplType
,
};
static
HRESULT
ffp_blit_alloc
(
IWineD3DDeviceImpl
*
device
)
{
return
WINED3D_OK
;
}
...
...
@@ -5539,11 +5534,6 @@ static HRESULT WINAPI IWineGDISurfaceImpl_SetMem(IWineD3DSurface *iface, void *m
return
WINED3D_OK
;
}
static
WINED3DSURFTYPE
WINAPI
IWineGDISurfaceImpl_GetImplType
(
IWineD3DSurface
*
iface
)
{
return
SURFACE_GDI
;
}
static
const
IWineD3DSurfaceVtbl
IWineGDISurface_Vtbl
=
{
/* IUnknown */
...
...
@@ -5586,7 +5576,6 @@ static const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl =
/* Internal use: */
IWineD3DBaseSurfaceImpl_SetFormat
,
IWineGDISurfaceImpl_PrivateSetup
,
IWineGDISurfaceImpl_GetImplType
,
};
HRESULT
surface_init
(
IWineD3DSurfaceImpl
*
surface
,
WINED3DSURFTYPE
surface_type
,
UINT
alignment
,
...
...
@@ -5650,6 +5639,8 @@ HRESULT surface_init(IWineD3DSurfaceImpl *surface, WINED3DSURFTYPE surface_type,
if
(
!
resource_size
)
return
WINED3DERR_INVALIDCALL
;
surface
->
surface_type
=
surface_type
;
/* Look at the implementation and set the correct Vtable. */
switch
(
surface_type
)
{
...
...
dlls/wined3d/surface_base.c
View file @
84d50f73
...
...
@@ -899,8 +899,7 @@ static IWineD3DSurfaceImpl *surface_convert_format(IWineD3DSurfaceImpl *source,
IWineD3DDevice_CreateSurface
((
IWineD3DDevice
*
)
source
->
resource
.
device
,
source
->
resource
.
width
,
source
->
resource
.
height
,
to_fmt
,
TRUE
/* lockable */
,
TRUE
/* discard */
,
0
/* level */
,
0
/* usage */
,
WINED3DPOOL_SCRATCH
,
WINED3DMULTISAMPLE_NONE
/* TODO: Multisampled conversion */
,
0
/* MultiSampleQuality */
,
IWineD3DSurface_GetImplType
((
IWineD3DSurface
*
)
source
),
NULL
/* parent */
,
&
wined3d_null_parent_ops
,
&
ret
);
0
/* MultiSampleQuality */
,
source
->
surface_type
,
NULL
/* parent */
,
&
wined3d_null_parent_ops
,
&
ret
);
if
(
!
ret
)
{
ERR
(
"Failed to create a destination surface for conversion
\n
"
);
return
NULL
;
...
...
dlls/wined3d/wined3d_private.h
View file @
84d50f73
...
...
@@ -2041,6 +2041,7 @@ struct IWineD3DSurfaceImpl
DWORD
flags
;
WINED3DSURFTYPE
surface_type
;
UINT
pow2Width
;
UINT
pow2Height
;
...
...
include/wine/wined3d.idl
View file @
84d50f73
...
...
@@ -2285,8 +2285,6 @@ interface IWineD3DSurface : IUnknown
)
;
HRESULT
PrivateSetup
(
)
;
WINED3DSURFTYPE
GetImplType
(
)
;
}
[
...
...
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