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
ce050c89
Commit
ce050c89
authored
Jan 20, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DSurface::GetData().
parent
0b7fef75
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
19 deletions
+1
-19
device.c
dlls/wined3d/device.c
+1
-1
surface.c
dlls/wined3d/surface.c
+0
-1
surface_base.c
dlls/wined3d/surface_base.c
+0
-14
surface_gdi.c
dlls/wined3d/surface_gdi.c
+0
-1
wined3d.idl
include/wine/wined3d.idl
+0
-2
No files found.
dlls/wined3d/device.c
View file @
ce050c89
...
...
@@ -5469,7 +5469,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
update_w
=
src_rect
?
src_rect
->
right
-
src_rect
->
left
:
src_w
;
update_h
=
src_rect
?
src_rect
->
bottom
-
src_rect
->
top
:
src_h
;
data
=
IWineD3DSurface_GetData
(
src_surface
)
;
data
=
src_impl
->
resource
.
allocatedMemory
;
if
(
!
data
)
ERR
(
"Source surface has no allocated memory, but should be a sysmem surface.
\n
"
);
ENTER_GL
();
...
...
dlls/wined3d/surface.c
View file @
ce050c89
...
...
@@ -4712,7 +4712,6 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DBaseSurfaceImpl_SetClipper
,
IWineD3DBaseSurfaceImpl_GetClipper
,
/* Internal use: */
IWineD3DBaseSurfaceImpl_GetData
,
IWineD3DSurfaceImpl_SetFormat
,
IWineD3DSurfaceImpl_PrivateSetup
,
IWineD3DSurfaceImpl_GetImplType
,
...
...
dlls/wined3d/surface_base.c
View file @
ce050c89
...
...
@@ -1885,17 +1885,3 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_Map(IWineD3DSurface *iface,
return
WINED3D_OK
;
}
/* TODO: think about moving this down to resource? */
const
void
*
WINAPI
IWineD3DBaseSurfaceImpl_GetData
(
IWineD3DSurface
*
iface
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
/* This should only be called for sysmem textures, it may be a good idea
* to extend this to all pools at some point in the future */
if
(
This
->
resource
.
pool
!=
WINED3DPOOL_SYSTEMMEM
)
{
FIXME
(
"(%p) Attempting to get system memory for a non-system memory texture
\n
"
,
iface
);
}
return
This
->
resource
.
allocatedMemory
;
}
dlls/wined3d/surface_gdi.c
View file @
ce050c89
...
...
@@ -480,7 +480,6 @@ const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl =
IWineD3DBaseSurfaceImpl_SetClipper
,
IWineD3DBaseSurfaceImpl_GetClipper
,
/* Internal use: */
IWineD3DBaseSurfaceImpl_GetData
,
IWineD3DBaseSurfaceImpl_SetFormat
,
IWineGDISurfaceImpl_PrivateSetup
,
IWineGDISurfaceImpl_GetImplType
,
...
...
include/wine/wined3d.idl
View file @
ce050c89
...
...
@@ -2462,8 +2462,6 @@ interface IWineD3DSurface : IWineD3DResource
HRESULT
GetClipper
(
[
out
]
IWineD3DClipper
**
clipper
)
;
const
void
*
GetData
(
)
;
HRESULT
SetFormat
(
[
in
]
enum
wined3d_format_id
format_id
)
;
...
...
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