diff options
Diffstat (limited to 'src/mapping.c')
-rw-r--r-- | src/mapping.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mapping.c b/src/mapping.c index 6d74ddd..86bf752 100644 --- a/src/mapping.c +++ b/src/mapping.c @@ -34,6 +34,7 @@ ReflectionContext *mapping_create(ControlContext *ctx) { int x, y; uint16_t *image_total; ImageDisplay *sum_id; + ImageRecord total_record; /* Find centre of image stack * Determine maximum size of image to accommodate, and allocate memory */ @@ -75,9 +76,13 @@ ReflectionContext *mapping_create(ControlContext *ctx) { } /* Display */ - sum_id = imagedisplay_open(image_total, twidth, theight, "Sum of All Images"); - imagedisplay_mark_point(sum_id, max_x, max_y); - imagedisplay_add_tilt_axis(sum_id, max_x, max_y, ctx->omega); + total_record.image = image_total; + total_record.width = twidth; + total_record.height = theight; + total_record.x_centre = max_x; + total_record.y_centre = max_y; + total_record.omega = ctx->omega; + sum_id = imagedisplay_open(total_record, "Sum of All Images", IMAGEDISPLAY_SHOW_CENTRE | IMAGEDISPLAY_SHOW_TILT_AXIS); } |