From: <gi...@cr...> - 2012-02-29 14:34:21
|
via 6a1a9efde9404a67373907646641f11e63daa73c (commit) from e3bde278711bf2ff4bb5822358995597c0d3fee4 (commit) ----------------------------------------------------------------------- commit 6a1a9efde9404a67373907646641f11e63daa73c Author: Florian Diebold <flo...@gm...> Date: Wed Feb 29 15:31:05 2012 +0100 Fix some display errors in the webtiles X map. ----------------------------------------------------------------------- Summary of changes: .../webserver/game_data/static/dungeon_renderer.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/crawl-ref/source/webserver/game_data/static/dungeon_renderer.js b/crawl-ref/source/webserver/game_data/static/dungeon_renderer.js index 0301520..0eb77d6 100644 --- a/crawl-ref/source/webserver/game_data/static/dungeon_renderer.js +++ b/crawl-ref/source/webserver/game_data/static/dungeon_renderer.js @@ -42,6 +42,11 @@ function ($, cr, map_knowledge) { this.element.width = c * this.cell_width; this.element.height = r * this.cell_height; this.init(this.element); + // The canvas is completely transparent after resizing; + // make it opaque to prevent display errors when shifting + // around parts of it later. + this.ctx.fillStyle = "black"; + this.ctx.fillRect(0, 0, this.element.width, this.element.height); }, set_view_center: function(x, y) -- Dungeon Crawl Stone Soup |