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
82d5f36c
Commit
82d5f36c
authored
Nov 28, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of copy_to_surfacedesc2().
parent
69ebf9de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-12
surface.c
dlls/ddraw/surface.c
+1
-1
No files found.
dlls/ddraw/ddraw_private.h
View file @
82d5f36c
...
@@ -608,18 +608,6 @@ struct member_info
...
@@ -608,18 +608,6 @@ struct member_info
#define DD_STRUCT_COPY_BYSIZE(to,from) DD_STRUCT_COPY_BYSIZE_(to,from,(from)->dwSize)
#define DD_STRUCT_COPY_BYSIZE(to,from) DD_STRUCT_COPY_BYSIZE_(to,from,(from)->dwSize)
#define SIZEOF_END_PADDING(type, last_field) \
(sizeof(type) - offsetof(type, last_field) - sizeof(((type *)0)->last_field))
static
inline
void
copy_to_surfacedesc2
(
DDSURFACEDESC2
*
to
,
const
DDSURFACEDESC2
*
from
)
{
DWORD
from_size
=
from
->
dwSize
;
if
(
from_size
==
sizeof
(
DDSURFACEDESC
))
from_size
-=
SIZEOF_END_PADDING
(
DDSURFACEDESC
,
ddsCaps
);
to
->
dwSize
=
sizeof
(
DDSURFACEDESC2
);
/* for struct copy */
DD_STRUCT_COPY_BYSIZE_
(
to
,
from
,
from_size
);
}
HRESULT
hr_ddraw_from_wined3d
(
HRESULT
hr
)
DECLSPEC_HIDDEN
;
HRESULT
hr_ddraw_from_wined3d
(
HRESULT
hr
)
DECLSPEC_HIDDEN
;
#endif
#endif
dlls/ddraw/surface.c
View file @
82d5f36c
...
@@ -5620,7 +5620,7 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
...
@@ -5620,7 +5620,7 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
texture
->
version
=
version
;
texture
->
version
=
version
;
copy_to_surfacedesc2
(
&
texture
->
surface_desc
,
surface_desc
)
;
texture
->
surface_desc
=
*
surface_desc
;
desc
=
&
texture
->
surface_desc
;
desc
=
&
texture
->
surface_desc
;
/* Ensure DDSD_CAPS is always set. */
/* Ensure DDSD_CAPS is always set. */
...
...
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