X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fdrawitem.c;h=9445141e337fc82f92fcfd15223226e87bf98f80;hb=a43d67bae425508678e5ae2ffe5dd1e84286b915;hp=b2b8fb977872b40ff8495a8da195645f4bb12a84;hpb=ce0214a66f4e1c6f4d94d53c1ead65b58157c60d;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawitem.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawitem.c index b2b8fb97..9445141e 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawitem.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawitem.c @@ -102,7 +102,7 @@ #include #include -#include +#include #include #include "drawitem.h" @@ -265,6 +265,11 @@ gboolean draw_line( void *hook_data, void *call_data) Properties->style, GDK_CAP_BUTT, GDK_JOIN_MITER); + //g_critical("DRAWING LINE : x1: %i, y1: %i, x2:%i, y2:%i", + // Draw_Context->previous->middle->x, + // Draw_Context->previous->middle->y, + // Draw_Context->current->middle->x, + // Draw_Context->current->middle->y); switch(Properties->position) { case OVER: @@ -351,13 +356,19 @@ gboolean draw_bg( void *hook_data, void *call_data) //gdk_gc_set_foreground(Draw_Context->gc, Properties->color); gdk_gc_set_rgb_fg_color(Draw_Context->gc, Properties->color); - + //g_critical("DRAWING RECT : x: %i, y: %i, w:%i, h:%i, val1 :%i, val2:%i ", + // Draw_Context->previous->over->x, + // Draw_Context->previous->over->y, + // Draw_Context->current->over->x - Draw_Context->previous->over->x, + // Draw_Context->previous->under->y-Draw_Context->previous->over->y, + // Draw_Context->current->over->x, + // Draw_Context->previous->over->x); gdk_draw_rectangle(Draw_Context->drawable, Draw_Context->gc, TRUE, Draw_Context->previous->over->x, Draw_Context->previous->over->y, Draw_Context->current->over->x - Draw_Context->previous->over->x, - Draw_Context->previous->under->y); + Draw_Context->previous->under->y-Draw_Context->previous->over->y); return 0; }