From 6a20ab31ef4d9f6bb0e008b9f1b8d3fbeb6bd956 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 2 Sep 2023 15:32:03 +0200 Subject: Updated 13 files and added 2 files (automated) --- src/zoom.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/zoom.py') 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 -- cgit