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
b3c333e9
Commit
b3c333e9
authored
Mar 10, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use signed types in convert_pixels to avoid problems on 64-bit.
parent
a2793d62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-1
image.c
dlls/gdiplus/image.c
+2
-2
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
b3c333e9
...
...
@@ -112,7 +112,7 @@ extern const char *debugstr_pointf(CONST PointF* pt);
extern
void
convert_32bppARGB_to_32bppPARGB
(
UINT
width
,
UINT
height
,
BYTE
*
dst_bits
,
INT
dst_stride
,
const
BYTE
*
src_bits
,
INT
src_stride
);
extern
GpStatus
convert_pixels
(
UINT
width
,
U
INT
height
,
extern
GpStatus
convert_pixels
(
INT
width
,
INT
height
,
INT
dst_stride
,
BYTE
*
dst_bits
,
PixelFormat
dst_format
,
INT
src_stride
,
const
BYTE
*
src_bits
,
PixelFormat
src_format
,
ARGB
*
src_palette
);
...
...
dlls/gdiplus/image.c
View file @
b3c333e9
...
...
@@ -498,11 +498,11 @@ GpStatus WINGDIPAPI GdipBitmapSetPixel(GpBitmap* bitmap, INT x, INT y,
return
Ok
;
}
GpStatus
convert_pixels
(
UINT
width
,
U
INT
height
,
GpStatus
convert_pixels
(
INT
width
,
INT
height
,
INT
dst_stride
,
BYTE
*
dst_bits
,
PixelFormat
dst_format
,
INT
src_stride
,
const
BYTE
*
src_bits
,
PixelFormat
src_format
,
ARGB
*
src_palette
)
{
U
INT
x
,
y
;
INT
x
,
y
;
if
(
src_format
==
dst_format
||
(
dst_format
==
PixelFormat32bppRGB
&&
PIXELFORMATBPP
(
src_format
)
==
32
))
...
...
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