diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index d9863a2f..8e2fdb4d 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -4075,6 +4075,10 @@ YOGA_EXPORT void YGConfigSetPointScaleFactor( } } +YOGA_EXPORT float YGConfigGetPointScaleFactor(const YGConfigRef config) { + return config->getPointScaleFactor(); +} + static void YGRoundToPixelGrid( const YGNodeRef node, const double pointScaleFactor, diff --git a/yoga/Yoga.h b/yoga/Yoga.h index 1beb320e..de07aeac 100644 --- a/yoga/Yoga.h +++ b/yoga/Yoga.h @@ -317,6 +317,7 @@ WIN_EXPORT void YGAssertWithConfig( WIN_EXPORT void YGConfigSetPointScaleFactor( YGConfigRef config, float pixelsInPoint); +WIN_EXPORT float YGConfigGetPointScaleFactor(YGConfigRef config); // Yoga previously had an error where containers would take the maximum space // possible instead of the minimum like they are supposed to. In practice this