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
f98f70fb
Commit
f98f70fb
authored
Jan 19, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Avoid signed-unsigned integer comparisons.
parent
a8b076d6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
8 deletions
+11
-8
bidi.c
dlls/gdi32/bidi.c
+3
-2
dib.c
dlls/gdi32/dib.c
+1
-1
font.c
dlls/gdi32/font.c
+4
-3
freetype.c
dlls/gdi32/freetype.c
+1
-1
painting.c
dlls/gdi32/painting.c
+2
-1
No files found.
dlls/gdi32/bidi.c
View file @
f98f70fb
...
...
@@ -358,7 +358,8 @@ BOOL BIDI_Reorder(
{
WORD
*
chartype
;
BYTE
*
levels
;
unsigned
i
,
done
,
glyph_i
;
INT
i
,
done
;
unsigned
glyph_i
;
BOOL
is_complex
;
int
maxItems
;
...
...
@@ -501,7 +502,7 @@ BOOL BIDI_Reorder(
glyph_i
=
0
;
while
(
done
<
uCount
)
{
unsigned
j
;
INT
j
;
classify
(
lpString
+
done
,
chartype
,
uCount
-
done
);
/* limit text to first block */
i
=
resolveParagraphs
(
chartype
,
uCount
-
done
);
...
...
dlls/gdi32/dib.c
View file @
f98f70fb
...
...
@@ -305,7 +305,7 @@ static void *get_pixel_ptr( const BITMAPINFO *info, void *bits, int x, int y )
static
BOOL
build_rle_bitmap
(
const
BITMAPINFO
*
info
,
struct
gdi_image_bits
*
bits
,
HRGN
*
clip
)
{
int
i
=
0
;
DWORD
i
=
0
;
int
left
,
right
;
int
x
,
y
,
width
=
info
->
bmiHeader
.
biWidth
,
height
=
info
->
bmiHeader
.
biHeight
;
HRGN
run
=
NULL
;
...
...
dlls/gdi32/font.c
View file @
f98f70fb
...
...
@@ -1734,7 +1734,7 @@ static DWORD get_glyph_bitmap( HDC hdc, UINT index, UINT flags, UINT aa_flags,
{
static
const
MAT2
identity
=
{
{
0
,
1
},
{
0
,
0
},
{
0
,
0
},
{
0
,
1
}
};
UINT
indices
[
3
]
=
{
0
,
0
,
0x20
};
int
i
;
unsigned
int
i
;
DWORD
ret
,
size
;
int
stride
;
...
...
@@ -1775,7 +1775,7 @@ static DWORD get_glyph_bitmap( HDC hdc, UINT index, UINT flags, UINT aa_flags,
static
RECT
get_total_extents
(
HDC
hdc
,
INT
x
,
INT
y
,
UINT
flags
,
UINT
aa_flags
,
LPCWSTR
str
,
UINT
count
,
const
INT
*
dx
)
{
int
i
;
UINT
i
;
RECT
rect
,
bounds
;
reset_bounds
(
&
bounds
);
...
...
@@ -1814,7 +1814,8 @@ static void draw_glyph( HDC hdc, INT origin_x, INT origin_y, const GLYPHMETRICS
const
struct
gdi_image_bits
*
image
,
const
RECT
*
clip
)
{
static
const
BYTE
masks
[
8
]
=
{
0x80
,
0x40
,
0x20
,
0x10
,
0x08
,
0x04
,
0x02
,
0x01
};
UINT
x
,
y
,
i
,
count
,
max_count
;
UINT
i
,
count
,
max_count
;
LONG
x
,
y
;
BYTE
*
ptr
=
image
->
ptr
;
int
stride
=
get_dib_stride
(
metrics
->
gmBlackBoxX
,
1
);
POINT
*
pts
;
...
...
dlls/gdi32/freetype.c
View file @
f98f70fb
...
...
@@ -5316,7 +5316,7 @@ static BOOL enum_face_charsets(const Family *family, Face *face, struct enum_cha
ENUMLOGFONTEXW
elf
;
NEWTEXTMETRICEXW
ntm
;
DWORD
type
=
0
;
int
i
;
DWORD
i
;
GetEnumStructs
(
face
,
face
->
family
->
FamilyName
,
&
elf
,
&
ntm
,
&
type
);
for
(
i
=
0
;
i
<
list
->
total
;
i
++
)
{
...
...
dlls/gdi32/painting.c
View file @
f98f70fb
...
...
@@ -140,7 +140,8 @@ BOOL nulldrv_PolyBezierTo( PHYSDEV dev, const POINT *points, DWORD count )
BOOL
nulldrv_PolyDraw
(
PHYSDEV
dev
,
const
POINT
*
points
,
const
BYTE
*
types
,
DWORD
count
)
{
POINT
*
line_pts
=
NULL
,
*
bzr_pts
=
NULL
,
bzr
[
4
];
INT
i
,
num_pts
,
num_bzr_pts
,
space
,
size
;
DWORD
i
;
INT
num_pts
,
num_bzr_pts
,
space
,
size
;
/* check for valid point types */
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
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