Retina 只显示了1/4
这是老版本引擎的问题,请手动修改 egret.wxgame.js 中的如下代码
var m = new egret.Matrix();
m.scale(scalex / canvasScaleX, scaley / canvasScaleY);
m.rotate(rotation * Math.PI / 180);
var transform = "matrix(" + m.a + "," + m.b + "," + m.c + "," + m.d + "," + m.tx + "," + m.ty + ")";
把下面这行注释掉!!
//canvas.style[wxgame.getPrefixStyleName("transform")] = transform;
egret.sys.DisplayList.$setCanvasScale(canvasScaleX, canvasScaleY);
this.webTouchHandler.updateScaleMode(scalex, scaley, rotation);
this.player.updateStageSize(stageWidth, stageHeight);