summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ScreenDump.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ScreenDump.cxx b/src/ScreenDump.cxx
index c0f038e..f331a76 100644
--- a/src/ScreenDump.cxx
+++ b/src/ScreenDump.cxx
@@ -42,6 +42,9 @@ ScreenDump::~ScreenDump() {
int
ScreenDump::save(OutputImage *out) {
+ if (!rgb)
+ return 1;
+
out->init(w, h);
for (int y = 0; y < h; y++) {