mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 19:22:48 +00:00
fixed the markup of non-transparent SVG
This commit is contained in:
parent
2a45e1340c
commit
be84ecb7df
@ -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), "\">");
|
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)
|
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();
|
what();
|
||||||
println(f, "</svg>");
|
println(f, "</svg>");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user