Fix out-of-bounds image slices

This commit is contained in:
Rangi42
2025-07-01 18:06:03 -04:00
committed by Eldred Habert
parent 008920f533
commit 965288de38
12 changed files with 37 additions and 1 deletions

3
test/gfx/bad_slice.err Normal file
View File

@@ -0,0 +1,3 @@
error: Image slice ((2, 2) to (130, 130)) is outside the image bounds (20x20)!
note: Did you mean the slice "2,2:2,2"? (width and height are in tiles, not pixels!)
Conversion aborted after 1 error