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
3a486471
Commit
3a486471
authored
Dec 03, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't copy unnecessary rows when shrinking in DELETESCANS mode.
parent
db3a8d6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+2
-3
primitives.c
dlls/gdi32/dibdrv/primitives.c
+6
-4
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
3a486471
...
...
@@ -1230,12 +1230,11 @@ DWORD stretch_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struct bit
else
{
int
merged_rows
=
0
;
int
faster_mode
=
mode
;
while
(
v_params
.
length
--
)
{
if
(
hstretch
)
faster_mode
=
merged_rows
?
mode
:
STRETCH_DELETESCANS
;
row_fn
(
&
dst_dib
,
&
dst_start
,
&
src_dib
,
&
src_start
,
&
h_params
,
faster_
mode
,
merged_rows
!=
0
);
if
(
mode
!=
STRETCH_DELETESCANS
||
!
merged_rows
)
row_fn
(
&
dst_dib
,
&
dst_start
,
&
src_dib
,
&
src_start
,
&
h_params
,
mode
,
merged_rows
!=
0
);
merged_rows
++
;
if
(
err
>
0
)
...
...
dlls/gdi32/dibdrv/primitives.c
View file @
3a486471
...
...
@@ -5698,7 +5698,7 @@ static void stretch_row_32(const dib_info *dst_dib, const POINT *dst_start,
int
err
=
params
->
err_start
;
int
width
;
if
(
mode
==
STRETCH_DELETESCANS
)
if
(
mode
==
STRETCH_DELETESCANS
||
!
keep_dst
)
{
for
(
width
=
params
->
length
;
width
;
width
--
)
{
...
...
@@ -5741,7 +5741,7 @@ static void stretch_row_24(const dib_info *dst_dib, const POINT *dst_start,
int
err
=
params
->
err_start
;
int
width
;
if
(
mode
==
STRETCH_DELETESCANS
)
if
(
mode
==
STRETCH_DELETESCANS
||
!
keep_dst
)
{
for
(
width
=
params
->
length
;
width
;
width
--
)
{
...
...
@@ -5788,7 +5788,7 @@ static void stretch_row_16(const dib_info *dst_dib, const POINT *dst_start,
int
err
=
params
->
err_start
;
int
width
;
if
(
mode
==
STRETCH_DELETESCANS
)
if
(
mode
==
STRETCH_DELETESCANS
||
!
keep_dst
)
{
for
(
width
=
params
->
length
;
width
;
width
--
)
{
...
...
@@ -5831,7 +5831,7 @@ static void stretch_row_8(const dib_info *dst_dib, const POINT *dst_start,
int
err
=
params
->
err_start
;
int
width
;
if
(
mode
==
STRETCH_DELETESCANS
)
if
(
mode
==
STRETCH_DELETESCANS
||
!
keep_dst
)
{
for
(
width
=
params
->
length
;
width
;
width
--
)
{
...
...
@@ -5876,6 +5876,7 @@ static void stretch_row_4(const dib_info *dst_dib, const POINT *dst_start,
struct
rop_codes
codes
;
BYTE
src_val
;
if
(
!
keep_dst
)
mode
=
STRETCH_DELETESCANS
;
rop_codes_from_stretch_mode
(
mode
,
&
codes
);
for
(
width
=
params
->
length
;
width
;
width
--
)
{
...
...
@@ -5911,6 +5912,7 @@ static void stretch_row_1(const dib_info *dst_dib, const POINT *dst_start,
struct
rop_codes
codes
;
BYTE
src_val
;
if
(
!
keep_dst
)
mode
=
STRETCH_DELETESCANS
;
rop_codes_from_stretch_mode
(
mode
,
&
codes
);
for
(
width
=
params
->
length
;
width
;
width
--
)
{
...
...
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