[COLRv1] Fix a couple of missing to_float() calls

Ouch!
This commit is contained in:
Behdad Esfahbod committed 2023-01-07 14:05:02 -07:00
1 parent d045de78c1
commit dfd9bf8a50
1 file changed
+2 -2
+2 -2
View File
@@ -1004,7 +1004,7 @@ struct PaintScaleUniform
void paint_glyph (hb_paint_context_t *c, uint32_t varIdxBase) const
{
float s = scale + c->instancer (varIdxBase, 0);
float s = scale.to_float () + c->instancer (varIdxBase, 0);
bool p1 = c->funcs->push_scale (c->data, s, s);
c->recurse (this+src);
@@ -1039,7 +1039,7 @@ struct PaintScaleUniformAroundCenter
void paint_glyph (hb_paint_context_t *c, uint32_t varIdxBase) const
{
float s = scale + c->instancer (varIdxBase, 0);
float s = scale.to_float () + c->instancer (varIdxBase, 0);
float tCenterX = centerX + c->instancer (varIdxBase, 1);
float tCenterY = centerY + c->instancer (varIdxBase, 2);