The setting of @mac_factor is never overridden in non-retina situations, meaning that once a save_stitch screenshot is captured on a 2x resolution ('retina') display, all subsequent screenshots taken by that browser will use that @mac_factor.
def calculate_dimensions
# ...
@mac_factor = 2 if retina?
@mac_factor ||= 1
# ...
end
The setting of
@mac_factor
is never overridden in non-retina situations, meaning that once asave_stitch
screenshot is captured on a 2x resolution ('retina') display, all subsequent screenshots taken by that browser will use that@mac_factor
.Something like this is probably preferable: