You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Require movie canvas dimensions in integer pixels when using modifiers +c|i (#8297)
* Allow dimensions in pixels via movie modifiers +c|i
If plot dimensions are given in pixels instead of cm, inches etc then use +c|i to indicate that units the dpu is in since actual plot dimensions is then the pixel dimensions divided by the dpu which gives either cm or inches.
* Update movie.c
* Check dimensions are integers
if (Ctrl->M.active&& !Ctrl->F.active[MOVIE_PNG]) Ctrl->M.exit= true; /* Only make the master frame */
1213
1234
1214
1235
n_errors+=gmt_M_check_condition (GMT, n_files!=1||Ctrl->In.file==NULL, "Must specify a main script file\n");
1215
-
n_errors+=gmt_M_check_condition (GMT, !Ctrl->C.active, "Option -C: Must specify a canvas dimension\n");
1236
+
n_errors+=gmt_M_check_condition (GMT, !Ctrl->C.active, "Option -C: Must specify canvas dimensions\n");
1216
1237
n_errors+=gmt_M_check_condition (GMT, Ctrl->M.exit&&Ctrl->animate, "Option -F: Cannot use none with other selections\n");
1217
1238
n_errors+=gmt_M_check_condition (GMT, !Ctrl->Q.active&& !Ctrl->M.active&& !Ctrl->F.active[MOVIE_PNG], "Must select at least one output product (-F, -M)\n");
1218
1239
n_errors+=gmt_M_check_condition (GMT, Ctrl->Q.active&&Ctrl->Z.active, "Cannot use -Z if -Q is also set\n");
0 commit comments