Skip to content
GitLab
Explore
Sign in
Register
FreeType
FreeType
Compare revisions
8f255c89e14219ca2489043f699797ee106ec6e9 to 01f23c39e01d2c739fd8abc69aff9dbf13b46202
Commits on Source (2)
* src/raster/ftmisc.h (FT_MulDiv): Remove unused copy.
· 5999d47d
Alexei Podtelezhnikov
authored
Dec 01, 2023
5999d47d
* src/raster/ftraster.c (Draw_Sweep): Swap stub conditions.
· 01f23c39
Alexei Podtelezhnikov
authored
Dec 01, 2023
01f23c39
Hide whitespace changes
Inline
Side-by-side
src/raster/ftmisc.h
View file @
01f23c39
...
...
@@ -92,27 +92,6 @@
#endif
static
FT_Long
FT_MulDiv
(
FT_Long
a
,
FT_Long
b
,
FT_Long
c
)
{
FT_Int
s
;
FT_Long
d
;
s
=
1
;
if
(
a
<
0
)
{
a
=
-
a
;
s
=
-
1
;
}
if
(
b
<
0
)
{
b
=
-
b
;
s
=
-
s
;
}
if
(
c
<
0
)
{
c
=
-
c
;
s
=
-
s
;
}
d
=
(
FT_Long
)(
c
>
0
?
(
(
FT_Int64
)
a
*
b
+
(
c
>>
1
)
)
/
c
:
0x7FFFFFFFL
);
return
(
s
>
0
)
?
d
:
-
d
;
}
static
FT_Long
FT_MulDiv_No_Round
(
FT_Long
a
,
FT_Long
b
,
...
...
src/raster/ftraster.c
View file @
01f23c39
...
...
@@ -2365,16 +2365,16 @@
if
(
dropOutControl
&
1
)
{
/*
rightmost
stub test */
if
(
P_Left
->
next
==
P_Right
&&
P_Left
->
height
==
1
&&
/*
upper
stub test */
if
(
P_Left
->
height
==
1
&&
P_Left
->
next
==
P_Right
&&
!
(
P_Left
->
flags
&
Overshoot_Top
&&
x2
-
x1
>=
ras
.
precision_half
)
)
goto
Next_Pair
;
/* l
eftmost
stub test */
if
(
P_
Right
->
next
==
P_Left
&&
P_
Left
->
offset
==
0
&&
/* l
ower
stub test */
if
(
P_
Left
->
offset
==
0
&&
P_
Right
->
next
==
P_Left
&&
!
(
P_Left
->
flags
&
Overshoot_Bottom
&&
x2
-
x1
>=
ras
.
precision_half
)
)
goto
Next_Pair
;
...
...