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
203d29d9
Commit
203d29d9
authored
Oct 04, 2011
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix pointer math for the 64-bit tests.
parent
db882bfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
gdiplus.c
dlls/gdiplus/gdiplus.c
+1
-1
image.c
dlls/gdiplus/image.c
+1
-1
No files found.
dlls/gdiplus/gdiplus.c
View file @
203d29d9
...
...
@@ -407,7 +407,7 @@ BOOL lengthen_path(GpPath *path, INT len)
void
convert_32bppARGB_to_32bppPARGB
(
UINT
width
,
UINT
height
,
BYTE
*
dst_bits
,
INT
dst_stride
,
const
BYTE
*
src_bits
,
INT
src_stride
)
{
U
INT
x
,
y
;
INT
x
,
y
;
for
(
y
=
0
;
y
<
height
;
y
++
)
{
const
BYTE
*
src
=
src_bits
+
y
*
src_stride
;
...
...
dlls/gdiplus/image.c
View file @
203d29d9
...
...
@@ -1404,7 +1404,7 @@ GpStatus WINGDIPAPI GdipCreateHBITMAPFromBitmap(GpBitmap* bitmap,
if
(
result
)
{
lockeddata
.
Stride
=
-
width
*
4
;
lockeddata
.
Scan0
=
bits
-
(
lockeddata
.
Stride
*
(
height
-
1
));
lockeddata
.
Scan0
=
bits
+
(
width
*
4
*
(
height
-
1
));
stat
=
GdipBitmapLockBits
(
bitmap
,
NULL
,
ImageLockModeRead
|
ImageLockModeUserInputBuf
,
PixelFormat32bppPARGB
,
&
lockeddata
);
...
...
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