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
6c2235cf
Commit
6c2235cf
authored
Apr 23, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix some typos in the 4-bpp shrink_row function.
parent
3068ae8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
primitives.c
dlls/gdi32/dibdrv/primitives.c
+4
-4
No files found.
dlls/gdi32/dibdrv/primitives.c
View file @
6c2235cf
...
@@ -5319,8 +5319,8 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start,
...
@@ -5319,8 +5319,8 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start,
const
struct
stretch_params
*
params
,
int
mode
,
const
struct
stretch_params
*
params
,
int
mode
,
BOOL
keep_dst
)
BOOL
keep_dst
)
{
{
BYTE
*
dst_ptr
=
get_pixel_ptr_
8
(
dst_dib
,
dst_start
->
x
,
dst_start
->
y
);
BYTE
*
dst_ptr
=
get_pixel_ptr_
4
(
dst_dib
,
dst_start
->
x
,
dst_start
->
y
);
BYTE
*
src_ptr
=
get_pixel_ptr_
8
(
src_dib
,
src_start
->
x
,
src_start
->
y
);
BYTE
*
src_ptr
=
get_pixel_ptr_
4
(
src_dib
,
src_start
->
x
,
src_start
->
y
);
int
err
=
params
->
err_start
;
int
err
=
params
->
err_start
;
int
width
,
dst_x
=
dst_start
->
x
,
src_x
=
src_start
->
x
;
int
width
,
dst_x
=
dst_start
->
x
,
src_x
=
src_start
->
x
;
struct
rop_codes
codes
;
struct
rop_codes
codes
;
...
@@ -5330,12 +5330,12 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start,
...
@@ -5330,12 +5330,12 @@ static void shrink_row_4(const dib_info *dst_dib, const POINT *dst_start,
rop_codes_from_stretch_mode
(
mode
,
&
codes
);
rop_codes_from_stretch_mode
(
mode
,
&
codes
);
for
(
width
=
params
->
length
;
width
;
width
--
)
for
(
width
=
params
->
length
;
width
;
width
--
)
{
{
if
(
new_pix
&&
!
keep_dst
)
do_rop_mask_8
(
dst_ptr
,
0
,
init_val
,
(
dst_x
&
1
)
?
0x
f0
:
0x0f
);
if
(
new_pix
&&
!
keep_dst
)
do_rop_mask_8
(
dst_ptr
,
0
,
init_val
,
(
dst_x
&
1
)
?
0x
0f
:
0xf0
);
if
(
src_x
&
1
)
src_val
=
(
*
src_ptr
&
0x0f
)
|
(
*
src_ptr
<<
4
);
if
(
src_x
&
1
)
src_val
=
(
*
src_ptr
&
0x0f
)
|
(
*
src_ptr
<<
4
);
else
src_val
=
(
*
src_ptr
&
0xf0
)
|
(
*
src_ptr
>>
4
);
else
src_val
=
(
*
src_ptr
&
0xf0
)
|
(
*
src_ptr
>>
4
);
do_rop_codes_mask_8
(
dst_ptr
,
src_val
,
&
codes
,
(
dst_x
&
1
)
?
0x
f0
:
0x0f
);
do_rop_codes_mask_8
(
dst_ptr
,
src_val
,
&
codes
,
(
dst_x
&
1
)
?
0x
0f
:
0xf0
);
new_pix
=
FALSE
;
new_pix
=
FALSE
;
if
((
src_x
&
~
1
)
!=
((
src_x
+
params
->
src_inc
)
&
~
1
))
if
((
src_x
&
~
1
)
!=
((
src_x
+
params
->
src_inc
)
&
~
1
))
...
...
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