Refactor OverworldEditor copy functionality to use selected points

- Updated the `Copy` method in `OverworldEditor` to utilize selected points instead of tiles for copying tile16 IDs to the clipboard, enhancing the selection mechanism.
- Improved the logic for determining the width and height of the selection based on the selected points, ensuring accurate tile copying.
- Adjusted the `DrawSelectRect` method in `Canvas` to correctly calculate local map indices, refining the tile selection process.
- Added a new configuration option in `Canvas` to control clamping behavior for local maps, providing more flexibility in canvas settings.
This commit is contained in:
scawful
2025-09-30 19:52:27 -04:00
parent 5cc5c08122
commit 36ad718099
3 changed files with 14 additions and 10 deletions

View File

@@ -252,6 +252,8 @@ endif()
target_link_options(yaze_test PRIVATE /STACK:8388608) # 8MB stack
elseif(MINGW)
target_link_options(yaze_test PRIVATE -Wl,--stack,8388608)
else()
target_link_options(yaze_test PRIVATE -Wl,-w)
endif()
endif()
endif()