浏览代码

make bounds roundOut in raster_cache.

/main
kg 6 年前
当前提交
dca85d15
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/flow/raster_cache.cs

4
Runtime/flow/raster_cache.cs


public readonly float devicePixelRatio;
public void draw(Canvas canvas) {
var bounds = canvas.getTotalMatrix().mapRect(this.logicalRect);
var bounds = canvas.getTotalMatrix().mapRect(this.logicalRect).roundOut();
D.assert(() => {
var textureWidth = Mathf.CeilToInt(bounds.width * this.devicePixelRatio);

RasterCacheResult _rasterizePicture(Picture picture, Matrix3 transform, float devicePixelRatio,
MeshPool meshPool) {
var bounds = transform.mapRect(picture.paintBounds);
var bounds = transform.mapRect(picture.paintBounds).roundOut();
var desc = new RenderTextureDescriptor(
Mathf.CeilToInt((bounds.width * devicePixelRatio)),

正在加载...
取消
保存