浏览代码

fix error: won't adjust fill area size when canskipAAhairline is true

/main
xingwei.zhu 5 年前
当前提交
dc4b5b79
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/ui/renderer/common/geometry/path/path_cache.cs

4
Runtime/ui/renderer/common/geometry/path/path_cache.cs


}
uiVertexUV _expandFill(float fringe) {
float aa = fringe;
float aa = this.canSkipAAHairline ? 0f : fringe;
float woff = aa * 0.5f;
var points = this._points;
var paths = this._paths;

uiList<Vector3> _strokeVertices = null;
uiList<Vector2> _strokeUV = null;
if (aa > 0.0f && !this.canSkipAAHairline) {
if (aa > 0.0f) {
_strokeVertices = ObjectPool<uiList<Vector3>>.alloc();
_strokeUV = ObjectPool<uiList<Vector2>>.alloc();
cvertices = 0;

正在加载...
取消
保存