Merge pull request #861 from melieconiek/finer-zoom

Add additional zoom levels to the zoom in/out commands.
This commit is contained in:
manongjohn 2022-01-18 12:18:23 -05:00 committed by GitHub
commit a21d05bd19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -764,10 +764,10 @@ void convertOldLevel2Tlv(const TFilePath &source, const TFilePath &dest,
//=============================================================================
#define ZOOMLEVELS 13
#define ZOOMLEVELS 17
#define NOZOOMINDEX 6
double ZoomFactors[ZOOMLEVELS] = {
0.015625, 0.03125, 0.0625, 0.125, 0.25, 0.5, 1, 2, 4, 8, 16, 32, 64};
0.015625, 0.03125, 0.0625, 0.125, 0.25, 0.375, 0.5, 0.625, 1, 1.5, 2, 2.5, 4, 8, 16, 32, 64};
double getQuantizedZoomFactor(double zf, bool forward) {
if (forward && (zf > ZoomFactors[ZOOMLEVELS - 1] ||