fixed the markup of non-transparent SVG

This commit is contained in:
Zeno Rogue 2018-12-21 14:44:55 +01:00
parent 2a45e1340c
commit be84ecb7df
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ namespace svg {
println(f, "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"", coord(vid.xres), "\" height=\"", coord(vid.yres), "\">");
if(!shot::transparent)
println(f, "<rect width=\"", coord(vid.xres), "\" height=\"", coord(vid.yres), "\" ", stylestr((backcolor << 8) | 0xFF, 0, 0));
println(f, "<rect width=\"", coord(vid.xres), "\" height=\"", coord(vid.yres), "\" ", stylestr((backcolor << 8) | 0xFF, 0, 0), "/>");
what();
println(f, "</svg>");