Mirror AsyncExecutor, yoga, and nanosvg to fbcode.
Summary: We'll need these libraries for rainbow, and none of them exist in fbcode. Reviewed By: mzlee Differential Revision: D5897801 fbshipit-source-id: c379b76fef2ab204555ceded0834efc6ba932f90
This commit is contained in:
committed by
Facebook Github Bot
parent
ff0a3f39d9
commit
5c617a5947
@@ -3322,7 +3322,7 @@ float YGRoundValueToPixelGrid(const float value,
|
|||||||
scaledValue = scaledValue - fractial;
|
scaledValue = scaledValue - fractial;
|
||||||
} else {
|
} else {
|
||||||
// Finally we just round the value
|
// Finally we just round the value
|
||||||
scaledValue = scaledValue - fractial + (fractial > 0.5f || YGFloatsEqual(fractial, 0.5f) ? 1.0f : 0.0f);
|
scaledValue = scaledValue - fractial + (fractial >= 0.5f ? 1.0f : 0.0f);
|
||||||
}
|
}
|
||||||
return scaledValue / pointScaleFactor;
|
return scaledValue / pointScaleFactor;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user