Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
cbb378fe
Commit
cbb378fe
authored
Nov 01, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cf6b4e38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
Main.ts
egret/src/Main.ts
+15
-11
No files found.
egret/src/Main.ts
View file @
cbb378fe
...
@@ -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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment