summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 14:31:39 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 14:31:39 +0200
commit5d202833169c3519c4ffe98ab4a860644f80cbc0 (patch)
tree12128faa0651a9fa2ab58c8d019545dc2d01851e
parent5372f3a5bc33418c0d1066095635adf34bf48a73 (diff)
add 'created with gipfel' to screen dumps
-rw-r--r--src/ScreenDump.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ScreenDump.cxx b/src/ScreenDump.cxx
index 141c5bd..c0f038e 100644
--- a/src/ScreenDump.cxx
+++ b/src/ScreenDump.cxx
@@ -20,15 +20,19 @@ ScreenDump::ScreenDump(Fl_Widget *widget) {
h = widget->h();
Fl::flush();
+ widget->resize(0, 0, w, h);
+
offscreen = fl_create_offscreen(w, h);
fl_begin_offscreen(offscreen);
- widget->resize(0, 0, w, h);
widget->redraw();
widget->draw();
- widget->resize(x, y, w, h);
+ fl_color(FL_YELLOW);
+ fl_draw("created with gipfel", w - 80, h - 10);
rgb = fl_read_image(NULL, 0, 0, w, h);
fl_end_offscreen();
fl_delete_offscreen(offscreen);
+
+ widget->resize(x, y, w, h);
}
ScreenDump::~ScreenDump() {