From 6c5f9f838ac39450b52674756cbc1500f57f09f1 Mon Sep 17 00:00:00 2001 From: notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com> Date: Tue, 11 Aug 2020 15:26:51 -0700 Subject: [PATCH] Fix premature loop-back on palette Palettes are a total of 256 colors (16 palettes). This can be seen in the palette preview. The current CGRAM offset prematurely loops back to color 0 (palette 0) when it reaches the 128th color (8th palette). This change will let the CGRAM offset access the full palette. --- obj-viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj-viewer.py b/obj-viewer.py index 53cae8e..3e7574c 100644 --- a/obj-viewer.py +++ b/obj-viewer.py @@ -866,7 +866,7 @@ def animation_controls_widget(self): self.cgram_label = ttk.Label(self.frame_frame_controls, text="CGRAM Offset") self.cgram_label.grid(row=i, column=0, padx=3, pady=3, sticky=tk.W) self.cgram_num = ttk.Spinbox(self.frame_frame_controls, - from_=0, to=128, + from_=0, to=256, increment=16, width=8, wrap=1,