소스 검색

text could have negative scale

dm 7 년 전
부모
커밋
d8b7d4cf37
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      oxygine/src/oxygine/actor/TextField.cpp

+ 2 - 0
oxygine/src/oxygine/actor/TextField.cpp

@@ -286,6 +286,8 @@ namespace oxygine
             return _root;
 
 
+		globalScale = scalar::abs(globalScale);
+
         float scale = 1.0f;
         const Font* font = _style.font->getClosestFont(globalScale, _style.fontSize, scale);