浏览代码

fix 0x0 image

/uiwidgets_1.0
siyao 3 年前
当前提交
08295573
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
      com.unity.uiwidgets/Runtime/painting/decoration_image.cs

6
com.unity.uiwidgets/Runtime/painting/decoration_image.cs


float strideY = fundamentalRect.height;
if (repeat == ImageRepeat.repeat || repeat == ImageRepeat.repeatX) {
if (strideX == 0) {
yield break;
}
if (strideY == 0) {
yield break;
}
startY = ((outputRect.top - fundamentalRect.top) / strideY).floor();
stopY = ((outputRect.bottom - fundamentalRect.bottom) / strideY).ceil();
}

正在加载...
取消
保存