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
3af09096
Commit
3af09096
authored
Mar 31, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of some mostly useless local variables in IWineD3DDeviceImpl_UpdateSurface().
parent
61ca4071
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
device.c
dlls/wined3d/device.c
+3
-11
No files found.
dlls/wined3d/device.c
View file @
3af09096
...
...
@@ -5161,8 +5161,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
const
struct
wined3d_format_desc
*
dst_format
;
CONVERT_TYPES
convert
=
NO_CONVERSION
;
struct
wined3d_context
*
context
;
WINED3DPOOL
src_pool
,
dst_pool
;
WINED3DSURFACE_DESC
winedesc
;
const
unsigned
char
*
data
;
UINT
update_w
,
update_h
;
UINT
src_w
,
src_h
;
...
...
@@ -5175,15 +5173,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
iface
,
src_surface
,
wine_dbgstr_rect
(
src_rect
),
dst_surface
,
wine_dbgstr_point
(
dst_point
));
IWineD3DSurface_GetDesc
(
src_surface
,
&
winedesc
);
src_w
=
winedesc
.
width
;
src_h
=
winedesc
.
height
;
src_pool
=
winedesc
.
pool
;
IWineD3DSurface_GetDesc
(
dst_surface
,
&
winedesc
);
dst_pool
=
winedesc
.
pool
;
if
(
src_pool
!=
WINED3DPOOL_SYSTEMMEM
||
dst_pool
!=
WINED3DPOOL_DEFAULT
)
if
(
src_impl
->
resource
.
pool
!=
WINED3DPOOL_SYSTEMMEM
||
dst_impl
->
resource
.
pool
!=
WINED3DPOOL_DEFAULT
)
{
WARN
(
"source %p must be SYSTEMMEM and dest %p must be DEFAULT, returning WINED3DERR_INVALIDCALL
\n
"
,
src_surface
,
dst_surface
);
...
...
@@ -5221,6 +5211,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
surface_internal_preload
(
dst_surface
,
SRGB_RGB
);
IWineD3DSurface_BindTexture
(
dst_surface
,
FALSE
);
src_w
=
src_impl
->
currentDesc
.
Width
;
src_h
=
src_impl
->
currentDesc
.
Height
;
update_w
=
src_rect
?
src_rect
->
right
-
src_rect
->
left
:
src_w
;
update_h
=
src_rect
?
src_rect
->
bottom
-
src_rect
->
top
:
src_h
;
...
...
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