summaryrefslogtreecommitdiff
path: root/meme/gui.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-02-14 02:12:42 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-02-14 02:13:28 (GMT)
commitfd505de82aa73c850d7b122dc3c9f7829995ad9c (patch)
tree26c825b2c209918c758a7dee1fa7a29e1b6195bb /meme/gui.c
parent32f2b42c5055e0783ad3c076a1bdb9d6abcb5b28 (diff)
downloadmisc-fd505de82aa73c850d7b122dc3c9f7829995ad9c.zip
misc-fd505de82aa73c850d7b122dc3c9f7829995ad9c.tar.gz
misc-fd505de82aa73c850d7b122dc3c9f7829995ad9c.tar.bz2
meme/: add screen dumps with "D"; option "-d dump.bmp" to set dump name
Diffstat (limited to 'meme/gui.c')
-rw-r--r--meme/gui.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/meme/gui.c b/meme/gui.c
index 45ed8ad..4133db6 100644
--- a/meme/gui.c
+++ b/meme/gui.c
@@ -1,8 +1,8 @@
/*
* gui.c - User interface
*
- * Written 2014-2015 by Werner Almesberger
- * Copyright 2014-2015 by Werner Almesberger
+ * Written 2014-2016 by Werner Almesberger
+ * Copyright 2014-2016 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
#include "overlay.h"
#include "plane.h"
#include "gaux.h"
+#include "screen.h"
#include "text.h"
#include "gui.h"
@@ -1243,6 +1244,9 @@ static bool event_loop(SDL_Surface **surf, const char *logfile,
case SDLK_c:
begin_contrast();
return 0;
+ case SDLK_d:
+ dump_screen(*surf);
+ break;
case SDLK_e:
begin_equal();
return 0;