diff options
author | Thomas White <taw@physics.org> | 2011-02-28 17:11:00 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:16 +0100 |
commit | c080e2c362628da1a68ad17c117f303945724006 (patch) | |
tree | b24e0c013e34dc2d339d91371ce0c3655a037831 /src/displaywindow.c | |
parent | 0d2fd58266f87fb20aceb017c68b0e455ab4baee (diff) |
First round of fallout from new geometry format
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r-- | src/displaywindow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c index 51a5cb9d..b542f269 100644 --- a/src/displaywindow.c +++ b/src/displaywindow.c @@ -202,7 +202,8 @@ static gboolean displaywindow_expose(GtkWidget *da, GdkEventExpose *event, cairo_set_matrix(cr, &basic_m); /* Move to the right location */ - cairo_translate(cr, p.cx/dw->binning, p.cy/dw->binning); + cairo_translate(cr, p.cnx/dw->binning, + p.cny/dw->binning); /* Twiddle directions according to matrix */ cairo_matrix_init(&m, p.fsx, p.fsy, p.ssx, p.ssy, @@ -248,6 +249,7 @@ static gboolean displaywindow_expose(GtkWidget *da, GdkEventExpose *event, return FALSE; } + cairo_identity_matrix(cr); for ( i=0; i<image_feature_count(dw->image->features); i++ ) { double x, y; |