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
9d71a5f1
Commit
9d71a5f1
authored
Jun 10, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Round rows up to whole blocks for compressed surface blits in BltFast().
parent
a25e63c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
surface_base.c
dlls/wined3d/surface_base.c
+3
-1
No files found.
dlls/wined3d/surface_base.c
View file @
9d71a5f1
...
...
@@ -1656,6 +1656,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst
UINT
block_width
;
UINT
block_height
;
UINT
block_byte_size
;
UINT
row_block_count
;
TRACE
(
"Fourcc -> Fourcc copy
\n
"
);
if
(
trans
)
...
...
@@ -1692,9 +1693,10 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst
block_byte_size
=
This
->
resource
.
format_desc
->
byte_count
;
}
row_block_count
=
(
w
+
block_width
-
1
)
/
block_width
;
for
(
y
=
0
;
y
<
h
;
y
+=
block_height
)
{
memcpy
(
dbuf
,
sbuf
,
(
w
/
block_width
)
*
block_byte_size
);
memcpy
(
dbuf
,
sbuf
,
row_block_count
*
block_byte_size
);
dbuf
+=
dlock
.
Pitch
;
sbuf
+=
slock
.
Pitch
;
}
...
...
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