aboutsummaryrefslogtreecommitdiffstats
path: root/icebox
diff options
context:
space:
mode:
Diffstat (limited to 'icebox')
-rw-r--r--icebox/icebox.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py
index 0a810e8..ce2a3cd 100644
--- a/icebox/icebox.py
+++ b/icebox/icebox.py
@@ -519,8 +519,9 @@ class iceconfig:
h_idx = idx - 28
elif corner == "tl":
#TODO: bounds check for v_idx case?
- v_idx = (idx + 8) ^ 1
- if idx >= 8 and idx < 32:
+ if idx >= 4:
+ v_idx = (idx + 8) ^ 1
+ if idx >= 12 and idx < 28:
h_idx = (idx ^ 1) - 8
elif corner == "tr":
#TODO: bounds check for v_idx case?