From 1a443ce35e96fb39ca0a152a38e35adb7e655ca2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 22 Feb 2011 00:04:47 -0800 Subject: Get rid of show_marked_features() in render.c, and use Cairo in displaywindow instead --- src/render.c | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index 10dd9f10..231225f2 100644 --- a/src/render.c +++ b/src/render.c @@ -193,48 +193,6 @@ static void render_free_data(guchar *data, gpointer p) } -/* FIXME: This doesn't belong here at all */ -static void show_marked_features(struct image *image, guchar *data, - int w, int h, int binning) -{ - int i; - float r = 10.0/binning; - - if ( image->features == NULL ) return; - - for ( i=0; ifeatures); i++ ) { - - struct imagefeature *f; - float x, y; - double th; - - f = image_get_feature(image->features, i); - if ( f == NULL ) continue; - - x = f->x / (float)binning; - y = f->y / (float)binning; - - for ( th=0; th<2*M_PI; th+=M_PI/40.0 ) { - - int nx, ny; - - nx = x + r*cos(th); - ny = y + r*sin(th); - - if ( nx < 0 ) continue; - if ( ny < 0 ) continue; - if ( nx >= w ) continue; - if ( ny >= h ) continue; - - data[3*( nx+w*(h-1-ny) )+0] = 128; - data[3*( nx+w*(h-1-ny) )+1] = 128; - data[3*( nx+w*(h-1-ny) )+2] = 30; - - } - } -} - - /* Return a pixbuf containing a rendered version of the image after binning. * This pixbuf might be scaled later - hopefully mostly in a downward * direction. */ @@ -287,8 +245,6 @@ GdkPixbuf *render_get_image(struct image *image, int binning, int scale, } } - show_marked_features(image, data, w, h, binning); - /* Finished with this */ free(hdr); -- cgit v1.2.3