aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Page.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r--perllib/Page.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index 470625749..0a3d755a7 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -637,7 +637,7 @@ sub os_to_tile {
return $_[0] / SCALE_FACTOR;
}
sub tile_to_os {
- return $_[0] * SCALE_FACTOR;
+ return int($_[0] * SCALE_FACTOR + 0.5);
}
sub click_to_tile {