From 4370a18763beb8869155d7c2c182c4fde7e8f3b9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 13 Dec 2018 17:57:26 +0100 Subject: [PATCH] added background to svg if transparent not set --- hyper.h | 1 + screenshot.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hyper.h b/hyper.h index e60cb939..877f3b4d 100644 --- a/hyper.h +++ b/hyper.h @@ -1866,6 +1866,7 @@ namespace shot { extern bool make_svg; extern ld gamma, fade; extern string caption; + extern bool transparent; void menu(); void default_screenshot_content(); void take(string fname, const function& what = default_screenshot_content); diff --git a/screenshot.cpp b/screenshot.cpp index 37506a74..aed5863d 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -166,6 +166,8 @@ namespace svg { #endif println(f, ""); + if(!shot::transparent) + println(f, "");