Merge pull request #861 from melieconiek/finer-zoom
Add additional zoom levels to the zoom in/out commands.
This commit is contained in:
commit
a21d05bd19
1 changed files with 2 additions and 2 deletions
|
@ -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] ||
|
||||
|
|
Loading…
Reference in a new issue