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
32d070af
Commit
32d070af
authored
Jan 23, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Avoid signed-unsigned integer comparisons.
parent
4c24882e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
graphics.c
dlls/gdiplus/graphics.c
+4
-2
image.c
dlls/gdiplus/image.c
+3
-2
region.c
dlls/gdiplus/region.c
+3
-3
No files found.
dlls/gdiplus/graphics.c
View file @
32d070af
...
@@ -429,7 +429,8 @@ static GpStatus alpha_blend_pixels_hrgn(GpGraphics *graphics, INT dst_x, INT dst
...
@@ -429,7 +429,8 @@ static GpStatus alpha_blend_pixels_hrgn(GpGraphics *graphics, INT dst_x, INT dst
if
(
graphics
->
image
&&
graphics
->
image
->
type
==
ImageTypeBitmap
)
if
(
graphics
->
image
&&
graphics
->
image
->
type
==
ImageTypeBitmap
)
{
{
int
i
,
size
;
DWORD
i
;
int
size
;
RGNDATA
*
rgndata
;
RGNDATA
*
rgndata
;
RECT
*
rects
;
RECT
*
rects
;
HRGN
hrgn
,
visible_rgn
;
HRGN
hrgn
,
visible_rgn
;
...
@@ -642,7 +643,8 @@ static int color_is_gray(ARGB color)
...
@@ -642,7 +643,8 @@ static int color_is_gray(ARGB color)
static
void
apply_image_attributes
(
const
GpImageAttributes
*
attributes
,
LPBYTE
data
,
static
void
apply_image_attributes
(
const
GpImageAttributes
*
attributes
,
LPBYTE
data
,
UINT
width
,
UINT
height
,
INT
stride
,
ColorAdjustType
type
)
UINT
width
,
UINT
height
,
INT
stride
,
ColorAdjustType
type
)
{
{
UINT
x
,
y
,
i
;
UINT
x
,
y
;
INT
i
;
if
(
attributes
->
colorkeys
[
type
].
enabled
||
if
(
attributes
->
colorkeys
[
type
].
enabled
||
attributes
->
colorkeys
[
ColorAdjustTypeDefault
].
enabled
)
attributes
->
colorkeys
[
ColorAdjustTypeDefault
].
enabled
)
...
...
dlls/gdiplus/image.c
View file @
32d070af
...
@@ -370,7 +370,7 @@ static inline UINT get_palette_index(BYTE r, BYTE g, BYTE b, BYTE a, ColorPalett
...
@@ -370,7 +370,7 @@ static inline UINT get_palette_index(BYTE r, BYTE g, BYTE b, BYTE a, ColorPalett
BYTE
index
=
0
;
BYTE
index
=
0
;
int
best_distance
=
0x7fff
;
int
best_distance
=
0x7fff
;
int
distance
;
int
distance
;
int
i
;
UINT
i
;
if
(
!
palette
)
return
0
;
if
(
!
palette
)
return
0
;
/* This algorithm scans entire palette,
/* This algorithm scans entire palette,
...
@@ -3793,7 +3793,8 @@ static GpStatus get_decoder_info(IStream* stream, const struct image_codec **res
...
@@ -3793,7 +3793,8 @@ static GpStatus get_decoder_info(IStream* stream, const struct image_codec **res
LARGE_INTEGER
seek
;
LARGE_INTEGER
seek
;
HRESULT
hr
;
HRESULT
hr
;
UINT
bytesread
;
UINT
bytesread
;
int
i
,
j
,
sig
;
int
i
;
DWORD
j
,
sig
;
/* seek to the start of the stream */
/* seek to the start of the stream */
seek
.
QuadPart
=
0
;
seek
.
QuadPart
=
0
;
...
...
dlls/gdiplus/region.c
View file @
32d070af
...
@@ -588,7 +588,7 @@ GpStatus WINGDIPAPI GdipCreateRegionHrgn(HRGN hrgn, GpRegion **region)
...
@@ -588,7 +588,7 @@ GpStatus WINGDIPAPI GdipCreateRegionHrgn(HRGN hrgn, GpRegion **region)
GpStatus
stat
;
GpStatus
stat
;
GpPath
*
path
;
GpPath
*
path
;
GpRegion
*
local
;
GpRegion
*
local
;
int
i
;
DWORD
i
;
TRACE
(
"(%p, %p)
\n
"
,
hrgn
,
region
);
TRACE
(
"(%p, %p)
\n
"
,
hrgn
,
region
);
...
@@ -1467,7 +1467,7 @@ GpStatus WINGDIPAPI GdipGetRegionScansCount(GpRegion *region, UINT *count, GpMat
...
@@ -1467,7 +1467,7 @@ GpStatus WINGDIPAPI GdipGetRegionScansCount(GpRegion *region, UINT *count, GpMat
GpStatus
WINGDIPAPI
GdipGetRegionScansI
(
GpRegion
*
region
,
GpRect
*
scans
,
INT
*
count
,
GpMatrix
*
matrix
)
GpStatus
WINGDIPAPI
GdipGetRegionScansI
(
GpRegion
*
region
,
GpRect
*
scans
,
INT
*
count
,
GpMatrix
*
matrix
)
{
{
GpStatus
stat
;
GpStatus
stat
;
INT
i
;
DWORD
i
;
LPRGNDATA
data
;
LPRGNDATA
data
;
RECT
*
rects
;
RECT
*
rects
;
...
@@ -1501,7 +1501,7 @@ GpStatus WINGDIPAPI GdipGetRegionScansI(GpRegion *region, GpRect *scans, INT *co
...
@@ -1501,7 +1501,7 @@ GpStatus WINGDIPAPI GdipGetRegionScansI(GpRegion *region, GpRect *scans, INT *co
GpStatus
WINGDIPAPI
GdipGetRegionScans
(
GpRegion
*
region
,
GpRectF
*
scans
,
INT
*
count
,
GpMatrix
*
matrix
)
GpStatus
WINGDIPAPI
GdipGetRegionScans
(
GpRegion
*
region
,
GpRectF
*
scans
,
INT
*
count
,
GpMatrix
*
matrix
)
{
{
GpStatus
stat
;
GpStatus
stat
;
INT
i
;
DWORD
i
;
LPRGNDATA
data
;
LPRGNDATA
data
;
RECT
*
rects
;
RECT
*
rects
;
...
...
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