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
d23bfd8d
Commit
d23bfd8d
authored
Feb 25, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Round up when converting from 32-bit ARGB to PARGB.
parent
ada3aea7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
gdiplus.c
dlls/gdiplus/gdiplus.c
+3
-3
image.c
dlls/gdiplus/tests/image.c
+0
-1
No files found.
dlls/gdiplus/gdiplus.c
View file @
d23bfd8d
...
...
@@ -442,9 +442,9 @@ void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height,
for
(
x
=
0
;
x
<
width
;
x
++
)
{
BYTE
alpha
=
src
[
3
];
*
dst
++
=
*
src
++
*
alpha
/
255
;
*
dst
++
=
*
src
++
*
alpha
/
255
;
*
dst
++
=
*
src
++
*
alpha
/
255
;
*
dst
++
=
(
*
src
++
*
alpha
+
127
)
/
255
;
*
dst
++
=
(
*
src
++
*
alpha
+
127
)
/
255
;
*
dst
++
=
(
*
src
++
*
alpha
+
127
)
/
255
;
*
dst
++
=
*
src
++
;
}
}
...
...
dlls/gdiplus/tests/image.c
View file @
d23bfd8d
...
...
@@ -4129,7 +4129,6 @@ static void test_ARGB_conversion(void)
ok
(
data
.
Stride
==
8
,
"expected 8, got %d
\n
"
,
data
.
Stride
);
ok
(
data
.
PixelFormat
==
PixelFormat32bppPARGB
,
"expected PixelFormat32bppPARGB, got %d
\n
"
,
data
.
PixelFormat
);
match
=
!
memcmp
(
data
.
Scan0
,
pargb
,
sizeof
(
pargb
));
todo_wine
ok
(
match
,
"bits don't match
\n
"
);
if
(
!
match
)
{
...
...
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