mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-15 12:11:34 +01:00
Fix blit back to original - stop fuzzy webkit browsers
This commit is contained in:
parent
64bd846115
commit
bffc56dd20
@ -8,13 +8,12 @@ var cloneCanvas = function(self) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function blitImage(ctx, image, sx ,sy, sw, sh, dx, dy, dw, dh) {
|
function blitImage(ctx, image, sx ,sy, sw, sh, dx, dy, dw, dh) {
|
||||||
ctx.drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh);
|
var x; var y;
|
||||||
// var x; var y;
|
for (x=0;x<dw;x++) {
|
||||||
// for (x=0;x<dw;x++) {
|
for (y=0;y<dh;y++) {
|
||||||
// for (y=0;y<dh;y++) {
|
ctx.drawImage(image,Math.floor(sx+x*(sw/dw)),Math.floor(sy+y*(sw/dw)),1,1,dx+x,dy+y,1,1);
|
||||||
// ctx.drawImage(image,Math.floor(sx+x*(sw/dw)),Math.floor(sy+y*(sw/dw)),1,1,dx+x,dy+y,1,1);
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function createMinecraftHead(player,completed,failed) {
|
function createMinecraftHead(player,completed,failed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user