- /************Fix this***************/
- cairo_rectangle (cr, select_rect->x, select_rect->y, select_rect->width, select_rect->height);
- cairo_set_source_rgba(cr, 0.0, 0.1, 0.2, 0.0);
+ int box_x = MIN(box->x1, box->x2);
+ int box_y = MIN(box->y1, box->y2);
+ int box_width = abs(box->x2 - box->x1);
+ int box_height = abs(box->y2 - box->y1);
+ cairo_rectangle (cr, box_x, box_y, box_width, box_height);
+ cairo_set_source_rgba(cr, 0.0, 0.1, 0.2, 0.5);