白鹭5.1后使用fairygui整个界面变得模糊
之前一直使用Egret的5.0.3引擎,在最近升级成了5.1.10,然后整个fairygui就糊了....GMovieClip,Text,GGraph 等组件都是模糊的,
Index.html中的参数如下:
data-orientation="portrait"
data-scale-mode="fixedWidth"
data-frame-rate="60"
data-content-width="640"
data-content-height="1136"
data-multi-fingered="2
egret.runEgret({ renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor:function(context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}});
Index.html中的参数如下:
data-orientation="portrait"
data-scale-mode="fixedWidth"
data-frame-rate="60"
data-content-width="640"
data-content-height="1136"
data-multi-fingered="2
egret.runEgret({ renderMode: "webgl", audioType: 0, calculateCanvasScaleFactor:function(context) {
var backingStore = context.backingStorePixelRatio ||
context.webkitBackingStorePixelRatio ||
context.mozBackingStorePixelRatio ||
context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1;
return (window.devicePixelRatio || 1) / backingStore;
}});
没有找到相关结果
已邀请:
1 个回复
谷主
赞同来自: