fix(hypertile): correct width/height mapping in hires set_resolution

hr_upscale_to_x is the width dimension and hr_upscale_to_y the height (see processing_class.py); set_resolution assigned them transposed, producing swapped HyperTile geometry on non-square hires passes.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
QualiaRain
2026-06-13 00:11:25 -04:00
parent d227a46406
commit 14a8eebbb8
+2 -2
View File
@@ -259,8 +259,8 @@ def set_resolution(p, hr=False):
if hr:
x = getattr(p, 'hr_upscale_to_x', 0)
y = getattr(p, 'hr_upscale_to_y', 0)
width = y if y > 0 else p.width
height = x if x > 0 else p.height
width = x if x > 0 else p.width
height = y if y > 0 else p.height
else:
width = p.width
height = p.height