multiple traces/tracefiles change
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / drawitem.c
index ef840f5ada96fdcd100bf8603e2199bf5d64448d..6d535fa566d4420ecd218df0b3fd8623a05e560a 100644 (file)
@@ -1,3 +1,23 @@
+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Mathieu Desnoyers
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
+ * MA 02111-1307, USA.
+ */
+
+
+
 /******************************************************************************
  * drawitem.c
  *
@@ -245,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:
@@ -331,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;
 }
This page took 0.023189 seconds and 4 git commands to generate.