+2007-05-02 Jim Evins <evins@snaught.com>
+
+ * src/view.c: (draw_select_region_layer), (motion_notify_event_cb),
+ (button_release_event_cb):
+ Removed attempt at rendering optimization by clipping the updates
+ to areas affected -- this actually seemed to hurt update performance.
+
2007-04-30 Jim Evins <evins@snaught.com>
* src/color.h:
w = fabs (view->select_region.x2 - view->select_region.x1);
h = fabs (view->select_region.y2 - view->select_region.y1);
+ cairo_save (cr);
+
+ cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
+
cairo_rectangle (cr, x1, y1, w, h);
cairo_set_source_rgba (cr, SELECT_FILL_RGBA_ARGS);
cairo_set_line_width (cr, SELECT_LINE_WIDTH_PIXELS/(view->home_scale * view->zoom));
cairo_set_source_rgba (cr, SELECT_LINE_RGBA_ARGS);
cairo_stroke (cr);
+
+ cairo_restore (cr);
}
}
break;
case GL_VIEW_ARROW_SELECT_REGION:
+#ifdef CLIP_UPDATES
gl_view_update_region (view, cr, &view->select_region);
+#endif
view->select_region.x2 = x;
view->select_region.y2 = y;
+#ifdef CLIP_UPDATES
gl_view_update_region (view, cr, &view->select_region);
+#else
+ gl_view_update (view);
+#endif
break;
case GL_VIEW_ARROW_MOVE:
break;
case GL_VIEW_ARROW_SELECT_REGION:
+#ifdef CLIP_UPDATES
gl_view_update_region (view, cr, &view->select_region);
+#else
+ gl_view_update (view);
+#endif
view->select_region_visible = FALSE;
view->select_region.x2 = x;