Skip to content

Commit

Permalink
fix black canvas bug, add icons to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jan 11, 2015
1 parent 7686cf9 commit 4275e66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.prevostc.catansimplemapgenerator" version="1.0.2" xmlns="http://www.w3.org/ns/widgets"
<widget id="com.prevostc.catansimplemapgenerator" version="1.1.0" xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Catan Simple Map Generator</name>
<description>
Expand Down
Binary file added icons.xcf
Binary file not shown.
4 changes: 4 additions & 0 deletions www/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
canvas.height = document.querySelector('.canvas-container').offsetHeight;
var map = Catan.Generator.Map.generate(Settings.getTileTrioScoreLimit(), Settings.getHarborGenerationStrategy());
Catan.UI.drawMap(map, canvas);
// @todo: find another fix.
// Sometimes, the canvas goes full black (on first launch mainly)
// prevent the canvas from remaining black by painting twice
Catan.UI.drawMap(map, canvas);
};
})

Expand Down

0 comments on commit 4275e66

Please sign in to comment.