Commit 5c43f6ba authored by 范雪寒's avatar 范雪寒

test:

parent ff780759
......@@ -138,11 +138,11 @@ cc.Class({
let realWidth = this.bgScaleMax[i].width * scaleForShowAll;
let realHeight = this.bgScaleMax[i].height * scaleForShowAll;
// 2. 基于第一步的数据,再做缩放适配
this.bgScaleMax[i].scale = Math.max(
cc.view.getCanvasSize().width / realWidth,
cc.view.getCanvasSize().height / realHeight
);
// // 2. 基于第一步的数据,再做缩放适配
// this.bgScaleMax[i].scale = Math.max(
// cc.view.getCanvasSize().width / realWidth,
// cc.view.getCanvasSize().height / realHeight
// );
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment