mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-13 06:45:17 +00:00
Fix palette highlight not being shown over the selected swatch
This commit is contained in:
parent
1e6460e439
commit
5a93af7477
1 changed files with 1 additions and 1 deletions
|
@ -152,5 +152,5 @@ func convert_grid_index_to_palette_index(index: int) -> int:
|
||||||
|
|
||||||
func convert_palette_index_to_grid_index(palette_index: int) -> int:
|
func convert_palette_index_to_grid_index(palette_index: int) -> int:
|
||||||
var x: int = palette_index % displayed_palette.width
|
var x: int = palette_index % displayed_palette.width
|
||||||
var y: int = palette_index / displayed_palette.height
|
var y: int = palette_index / displayed_palette.width
|
||||||
return int((x - grid_window_origin.x) + (y - grid_window_origin.y) * grid_size.x)
|
return int((x - grid_window_origin.x) + (y - grid_window_origin.y) * grid_size.x)
|
||||||
|
|
Loading…
Add table
Reference in a new issue