From bd81744e08205a13748448bef965f7e715ed4cdb Mon Sep 17 00:00:00 2001 From: Alexander Bazo Date: Mon, 14 Oct 2019 08:42:35 +0200 Subject: [PATCH] Fix minor bugs --- lib/logic/Task.js | 2 +- www/images/Bruegel-Childrens_Games.jpg | Bin 16341568 -> 0 bytes www/resources/js/viewer/ImageViewer.js | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logic/Task.js b/lib/logic/Task.js index 23b8bf5..35e701f 100644 --- a/lib/logic/Task.js +++ b/lib/logic/Task.js @@ -15,7 +15,7 @@ const schema = require("@colyseus/schema"), duration: 15000, }, { - imageUrl: "images/Bruegel-Childrens_Games.jpg.jpg", + imageUrl: "images/Bruegel-Childrens_Games.jpg", taskDescription: "Identifizieren Sie unterschiedliche Spiele.", taskSource: "Pieter Bruegel the Elder, Children's Bruegel-Childrens_Games (Oil on oak wood, 1560), Kunsthistorisches Museum, Vienna", duration: 15000, diff --git a/www/images/Bruegel-Childrens_Games.jpg b/www/images/Bruegel-Childrens_Games.jpg index c540c7f..f641e68 100644 Binary files a/www/images/Bruegel-Childrens_Games.jpg and b/www/images/Bruegel-Childrens_Games.jpg differ diff --git a/www/resources/js/viewer/ImageViewer.js b/www/resources/js/viewer/ImageViewer.js index b44c0e9..d325745 100644 --- a/www/resources/js/viewer/ImageViewer.js +++ b/www/resources/js/viewer/ImageViewer.js @@ -60,6 +60,7 @@ class ImageViewer { image = new Image(); image.src = imageUrl; image.onload = function() { + that.backgroundContext.clearRect(0, 0, screen.width, screen.height); that.backgroundContext.drawImage(image, 0, 0); }; } -- libgit2 0.26.0