Commit 05b9757e by doszhang

dos

parent e1624011
......@@ -33,10 +33,9 @@ function preloadimages(obj, complete_cb, progress_cb) {
}
}
preloadImageList = []
for (var i = 1; i <= 2; i++) {
for (var i = 1; i <= 4; i++) {
preloadImageList.push('/Public/static/image2/cover/' + i + '.png');
}
preloadImageList.push('/Public/static/image2/cover/3.png');
preloadimages(preloadImageList, function () {
init();
}, function (progress) {});
......@@ -260,7 +259,7 @@ var init = function () {
canvas = $('canvas').get(0);
ctx = canvas.getContext('2d');
ctx.scale(2, 2);
var img = loadedImages['/Public/static/image2/cover/3.png'];
var img = loadedImages['/Public/static/image2/cover/4.png'];
canvas.width = img.width;
canvas.height = img.height;
}
......
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 sign in to comment