aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 326ce362..fe6a8f0d 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -471,8 +471,8 @@ int main(int argc, char *argv[])
free(beamfile);
/* Define image parameters */
- image.width = image.det->max_x + 1;
- image.height = image.det->max_y + 1;
+ image.width = image.det->max_fs + 1;
+ image.height = image.det->max_ss + 1;
image.lambda = ph_en_to_lambda(eV_to_J(image.beam->photon_energy));
/* Load unit cell */