From 5d202833169c3519c4ffe98ab4a860644f80cbc0 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Mar 2009 14:31:39 +0200 Subject: add 'created with gipfel' to screen dumps --- src/ScreenDump.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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() { -- cgit v1.2.3