summaryrefslogtreecommitdiff
path: root/src/zoom.py
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-09-04 16:05:23 +0200
committerRaindropsSys <contact@minteck.org>2023-09-04 16:05:23 +0200
commit553401cc031d2d073f33008129ada4faf1eb2582 (patch)
tree535f13535c856cbdcf619101bfeb0e56f156f267 /src/zoom.py
parent5a50cd93de8cb94154777e2da8f1bbca86479199 (diff)
downloadblocks-553401cc031d2d073f33008129ada4faf1eb2582.tar.gz
blocks-553401cc031d2d073f33008129ada4faf1eb2582.tar.bz2
blocks-553401cc031d2d073f33008129ada4faf1eb2582.zip
Updated 3 files (automated)
Diffstat (limited to 'src/zoom.py')
-rw-r--r--src/zoom.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/zoom.py b/src/zoom.py
index d3092e0..78b133b 100644
--- a/src/zoom.py
+++ b/src/zoom.py
@@ -1,5 +1,3 @@
-offset_limit = 600
-
def zoom_in(zoom):
if zoom[0] > 128:
zoom = (zoom[0] / 1.5, zoom[1] / 1.5)
@@ -16,21 +14,17 @@ def zoom_reset():
return zoom, offset
def offset_down(offset):
- if offset[1] - 20 > -offset_limit:
- offset = (offset[0], offset[1] - 20)
+ offset = (offset[0], offset[1] - 20)
return offset
def offset_up(offset):
- if offset[1] + 20 < offset_limit:
- offset = (offset[0], offset[1] + 20)
+ offset = (offset[0], offset[1] + 20)
return offset
def offset_right(offset):
- if offset[0] - 20 > -(offset_limit * 16/9):
- offset = (offset[0] - 20, offset[1])
+ 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])
+ offset = (offset[0] + 20, offset[1])
return offset \ No newline at end of file