mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-12 01:26:23 +02:00
Merge pull request #219 from AshBardhan/retina-screenshot-fix
Retina screenshot Fix
This commit is contained in:
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,3 +1,11 @@
|
|||||||
.sass-cache
|
### OSX ###
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
### PhPStorm / IntellJ IDEA ###
|
||||||
|
.idea/
|
||||||
|
*.iml
|
||||||
|
|
||||||
|
### Dependencies ###
|
||||||
node_modules/
|
node_modules/
|
||||||
*.map
|
*.map
|
||||||
|
.sass-cache
|
@ -1569,12 +1569,14 @@ globalConsoleContainerEl
|
|||||||
c.width = iframeBounds.width;
|
c.width = iframeBounds.width;
|
||||||
c.height = iframeBounds.height;
|
c.height = iframeBounds.height;
|
||||||
var ctx = c.getContext('2d');
|
var ctx = c.getContext('2d');
|
||||||
|
var devicePixelRatio = window.devicePixelRatio || 1;
|
||||||
|
|
||||||
ctx.drawImage(
|
ctx.drawImage(
|
||||||
image,
|
image,
|
||||||
iframeBounds.left,
|
iframeBounds.left * devicePixelRatio,
|
||||||
iframeBounds.top,
|
iframeBounds.top * devicePixelRatio,
|
||||||
iframeBounds.width,
|
iframeBounds.width * devicePixelRatio,
|
||||||
iframeBounds.height,
|
iframeBounds.height * devicePixelRatio,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
iframeBounds.width,
|
iframeBounds.width,
|
||||||
|
Reference in New Issue
Block a user