improved "zoom to fit" functionality

- fix regression in image quality for the previous zoom levels
- ignore the finer-grained zoom levels when zooming manually (either with the
  scroll wheel or with the buttons), but use them only only for zoom to fit
This commit is contained in:
Alberto Griggio
2017-03-16 23:32:02 +01:00
parent d41bd0d7e3
commit 674cdb93be
3 changed files with 33 additions and 33 deletions

View File

@@ -118,9 +118,11 @@ class CropWindow : public LWButtonListener, public CropDisplayHandler, public Ed
Glib::ustring label;
double zoom;
int czoom;
bool is_major;
explicit ZoomStep(const Glib::ustring &l="", double z=0.0, int cz=0):
label(l), zoom(z), czoom(cz) {}
explicit ZoomStep(const Glib::ustring &l="", double z=0.0,
int cz=0, bool m=false):
label(l), zoom(z), czoom(cz), is_major(m) {}
};
std::vector<ZoomStep> zoomSteps;
size_t zoom11index;