Update DrawTileSelector to support variable tile height

- Modified DrawTileSelector function to accept an additional parameter for tile height, defaulting to the original size if not provided.
- Adjusted the logic for calculating the second point in the tile selection to use the new height parameter, improving flexibility in tile rendering.
This commit is contained in:
scawful
2025-05-10 11:00:08 -04:00
parent b872fd9672
commit d97824c575
2 changed files with 6 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ class Canvas : public SharedRom {
// Dictates which tile is currently selected based on what the user clicks
// in the canvas window. Represented and split apart into a grid of tiles.
bool DrawTileSelector(int size);
bool DrawTileSelector(int size, int size_y = 0);
// Draws the selection rectangle when the user is selecting multiple tiles
void DrawSelectRect(int current_map, int tile_size = 0x10,