Changeset 1812
- Timestamp:
- 04/21/12 02:43:08 (14 months ago)
- File:
-
- 1 edited
-
branches/release-1_0/platform/generic/shooting.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_0/platform/generic/shooting.c
r1739 r1812 1075 1075 s=shooting_get_near_limit_f(v,shooting_get_min_real_aperture(),get_focal_length(lens_get_zoom_point())); 1076 1076 } 1077 if (!conf.dof_use_exif_subj_dist) s+=shooting_get_lens_to_focal_plane_width(); 1077 if (!conf.dof_use_exif_subj_dist && (s != INFINITY_DIST)) 1078 s+=shooting_get_lens_to_focal_plane_width(); 1078 1079 lens_set_focus_pos(s); 1079 1080 } … … 1285 1286 int shooting_get_subject_distance_override_value() 1286 1287 { 1287 return (conf.subj_dist_override_value < shooting_get_lens_to_focal_plane_width()?0:(conf.subj_dist_override_value - shooting_get_lens_to_focal_plane_width())); 1288 if (conf.subj_dist_override_value != INFINITY_DIST) 1289 return (conf.subj_dist_override_value < shooting_get_lens_to_focal_plane_width()?0:(conf.subj_dist_override_value - shooting_get_lens_to_focal_plane_width())); 1290 else 1291 return INFINITY_DIST; 1288 1292 } 1289 1293
Note: See TracChangeset
for help on using the changeset viewer.