From 80fd70485e998dab64b2f14684a18552c94a70f1 Mon Sep 17 00:00:00 2001 From: compudj Date: Fri, 9 Jan 2004 22:02:36 +0000 Subject: [PATCH] fix big problem for resize git-svn-id: http://ltt.polymtl.ca/svn@367 04897980-b3bd-0310-b5e0-8ef037075253 --- .../lttv/modules/guiControlFlow/Drawing.c | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c index c472d7c6..97444fc0 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c @@ -197,10 +197,11 @@ g_critical("missing data"); drawing_data_request(Drawing, &Pixmap, Drawing->width, 0, widget->allocation.width - Drawing->width, widget->allocation.height); - drawing_data_request(Drawing, &Pixmap, 0, Drawing->height, - Drawing->width, - widget->allocation.height - Drawing->height); - + // we do not request data vertically! +// drawing_data_request(Drawing, &Pixmap, 0, Drawing->height, +// Drawing->width, +// widget->allocation.height - Drawing->height); + // gdk_draw_rectangle (Pixmap, // widget->style->white_gc, // TRUE, @@ -208,14 +209,14 @@ g_critical("missing data"); // widget->allocation.width - // Drawing->width, // widget->allocation.height); - -// gdk_draw_rectangle (Pixmap, -// widget->style->white_gc, -// TRUE, -// 0, Drawing->height, -// Drawing->width, // do not overlap -// widget->allocation.height - -// Drawing->height); + + // Clear the bottom part of the image + gdk_draw_rectangle (Pixmap, + widget->style->white_gc, + TRUE, + 0, Drawing->height, + Drawing->width, // do not overlap + widget->allocation.height - Drawing->height); Drawing->width = widget->allocation.width; Drawing->height = widget->allocation.height; -- 2.34.1