Repository navigation
Fix size of minimap - #42
Merged
Merged
Conversation
…d function signatures
Refactor the minimap implementation to improve visual scaling and rendering accuracy. - Rename `calculate_tile` to `size_tile` for clarity. - Implement dynamic tile sizing based on map width to prevent distortion. - Add `draw_background_map` to provide a visual base for the minimap. - Fix off-by-one errors in tile drawing loops and boundary checks. - Update `select_color` to use defined gray constants and handle orientation characters. - Add new gray color definitions to `colors.h`. - Fix header metadata and include unused parameter warnings.
…ature Refactor the minimap logic to ensure consistent scaling and improve data passing between modules. - Clamp `tile_size` between 3 and 12 to prevent extreme scaling issues. - Update `draw_minimap_player` to accept `t_minimap` pointer, allowing the player icon size to scale relative to the map tiles. - Update function signatures in `inc/player.h` and `src/minimap/mini_map.c` to reflect the new parameter requirements. - Fix minor header metadata and timestamp inconsistencies.
- Change `size` type to `float` in `draw_minimap_player` to improve scaling accuracy. - Increase player icon scale factor from 0.5 to 0.7. - Remove redundant `round()` calls in `mini_dir_player` for pixel coordinates. - Update file header timestamp.
Melow-code
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for the size of minimap, color background, and center of line of direction