Skip to content

Commit

Permalink
Cache hit / - miss takes scaling position into account
Browse files Browse the repository at this point in the history
  • Loading branch information
seebye committed Mar 4, 2019
1 parent bbb7f47 commit 462787b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ueberzug/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def transform_image(self, term_info: xutil.TerminalWindowInfo,
transformed_image = self.cache.get(term_info)
final_size = self.scaler.calculate_resolution(
self.image, width, height)
options = self.scaler.get_scaler_name(), final_size
options = (self.scaler.get_scaler_name(),
self.scaling_position, final_size)

if (transformed_image is None
or transformed_image.options != options):
Expand Down

0 comments on commit 462787b

Please # to comment.