[truetype] Use SUB_LONG for component offset.
* src/truetype/ttgload.c (TT_Process_Composite_Component): do it. Bug: https://crbug.com/1309429
This commit is contained in:
parent
385345037e
commit
d247c56278
|
@ -1228,8 +1228,8 @@
|
||||||
p1 = gloader->base.outline.points + k;
|
p1 = gloader->base.outline.points + k;
|
||||||
p2 = gloader->base.outline.points + l;
|
p2 = gloader->base.outline.points + l;
|
||||||
|
|
||||||
x = p1->x - p2->x;
|
x = SUB_LONG(p1->x, p2->x);
|
||||||
y = p1->y - p2->y;
|
y = SUB_LONG(p1->y, p2->y);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue