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
ecf1bbd5
Commit
ecf1bbd5
authored
Apr 06, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of surface_get_rect().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
215e8b10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
surface.c
dlls/wined3d/surface.c
+2
-14
No files found.
dlls/wined3d/surface.c
View file @
ecf1bbd5
...
...
@@ -175,19 +175,6 @@ static void surface_get_blt_info(GLenum target, const RECT *rect, GLsizei w, GLs
}
}
static
void
surface_get_rect
(
const
struct
wined3d_surface
*
surface
,
const
RECT
*
rect_in
,
RECT
*
rect_out
)
{
if
(
rect_in
)
*
rect_out
=
*
rect_in
;
else
{
const
struct
wined3d_texture
*
texture
=
surface
->
container
;
SetRect
(
rect_out
,
0
,
0
,
wined3d_texture_get_level_width
(
texture
,
surface
->
texture_level
),
wined3d_texture_get_level_height
(
texture
,
surface
->
texture_level
));
}
}
/* Context activation is done by the caller. */
void
draw_textured_quad
(
const
struct
wined3d_surface
*
src_surface
,
struct
wined3d_context
*
context
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
enum
wined3d_texture_filter_type
filter
)
...
...
@@ -2204,7 +2191,8 @@ static BOOL surface_load_drawable(struct wined3d_surface *surface,
else
restore_rt
=
NULL
;
surface_get_rect
(
surface
,
NULL
,
&
r
);
SetRect
(
&
r
,
0
,
0
,
wined3d_texture_get_level_width
(
texture
,
surface
->
texture_level
),
wined3d_texture_get_level_height
(
texture
,
surface
->
texture_level
));
wined3d_texture_load_location
(
texture
,
sub_resource_idx
,
context
,
WINED3D_LOCATION_TEXTURE_RGB
);
device
->
blitter
->
ops
->
blitter_blit
(
device
->
blitter
,
WINED3D_BLIT_OP_COLOR_BLIT
,
context
,
surface
,
WINED3D_LOCATION_TEXTURE_RGB
,
&
r
,
...
...
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