Retina 只显示了1/4

这是老版本引擎的问题,请手动修改 egret.wxgame.js 中的如下代码

  1. var m = new egret.Matrix();
  2. m.scale(scalex / canvasScaleX, scaley / canvasScaleY);
  3. m.rotate(rotation * Math.PI / 180);
  4. var transform = "matrix(" + m.a + "," + m.b + "," + m.c + "," + m.d + "," + m.tx + "," + m.ty + ")";
  5. 把下面这行注释掉!!
  6. //canvas.style[wxgame.getPrefixStyleName("transform")] = transform;
  7. egret.sys.DisplayList.$setCanvasScale(canvasScaleX, canvasScaleY);
  8. this.webTouchHandler.updateScaleMode(scalex, scaley, rotation);
  9. this.player.updateStageSize(stageWidth, stageHeight);