Commit cbb378fe authored by wildfirecode's avatar wildfirecode

1

parent cf6b4e38
...@@ -5,14 +5,18 @@ class Main extends MainBase { ...@@ -5,14 +5,18 @@ class Main extends MainBase {
window['Main'] = Main; window['Main'] = Main;
egret.runEgret({ setTimeout(() => {
renderMode: window['renderMode'], audioType: 0, calculateCanvasScaleFactor: (context: any) => {
const backingStore = context.backingStorePixelRatio || egret.runEgret({
context.webkitBackingStorePixelRatio || renderMode: window['renderMode'], audioType: 0, calculateCanvasScaleFactor: (context: any) => {
context.mozBackingStorePixelRatio || const backingStore = context.backingStorePixelRatio ||
context.msBackingStorePixelRatio || context.webkitBackingStorePixelRatio ||
context.oBackingStorePixelRatio || context.mozBackingStorePixelRatio ||
context.backingStorePixelRatio || 1; context.msBackingStorePixelRatio ||
return (window.devicePixelRatio || 1) / backingStore; context.oBackingStorePixelRatio ||
} context.backingStorePixelRatio || 1;
}); return (window.devicePixelRatio || 1) / backingStore;
\ No newline at end of file }
});
}, 500);
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