summaryrefslogtreecommitdiff
path: root/src/zoom.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zoom.py')
-rw-r--r--src/zoom.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/zoom.py b/src/zoom.py
index 1e57d56..d3092e0 100644
--- a/src/zoom.py
+++ b/src/zoom.py
@@ -1,4 +1,4 @@
-offset_limit = 200
+offset_limit = 600
def zoom_in(zoom):
if zoom[0] > 128:
@@ -15,22 +15,22 @@ def zoom_reset():
offset = (0, 0)
return zoom, offset
-def offset_up(offset):
- if offset[1] - 10 > -offset_limit:
- offset = (offset[0], offset[1] - 10)
- return offset
-
def offset_down(offset):
- if offset[1] + 10 < offset_limit:
- offset = (offset[0], offset[1] + 10)
+ if offset[1] - 20 > -offset_limit:
+ offset = (offset[0], offset[1] - 20)
return offset
-def offset_left(offset):
- if offset[0] - 10 > -(offset_limit * 16/9):
- offset = (offset[0] - 10, offset[1])
+def offset_up(offset):
+ if offset[1] + 20 < offset_limit:
+ offset = (offset[0], offset[1] + 20)
return offset
def offset_right(offset):
- if offset[0] + 10 < offset_limit * 16/9:
- offset = (offset[0] + 10, offset[1])
+ if offset[0] - 20 > -(offset_limit * 16/9):
+ offset = (offset[0] - 20, offset[1])
+ return offset
+
+def offset_left(offset):
+ if offset[0] + 20 < offset_limit * 16/9:
+ offset = (offset[0] + 20, offset[1])
return offset \ No newline at end of file