mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-06 09:35:40 +02:00
Fixed screenshots for Retina display system
This commit is contained in:
parent
98a6abd36e
commit
5b6fa361d5
@ -1567,12 +1567,14 @@ globalConsoleContainerEl
|
||||
c.width = iframeBounds.width;
|
||||
c.height = iframeBounds.height;
|
||||
var ctx = c.getContext('2d');
|
||||
var devicePixelRatio = window.devicePixelRatio || 1;
|
||||
|
||||
ctx.drawImage(
|
||||
image,
|
||||
iframeBounds.left,
|
||||
iframeBounds.top,
|
||||
iframeBounds.width,
|
||||
iframeBounds.height,
|
||||
iframeBounds.left * devicePixelRatio,
|
||||
iframeBounds.top * devicePixelRatio,
|
||||
iframeBounds.width * devicePixelRatio,
|
||||
iframeBounds.height * devicePixelRatio,
|
||||
0,
|
||||
0,
|
||||
iframeBounds.width,
|
||||
|
Loading…
x
Reference in New Issue
Block a user