1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-12 22:35:18 +00:00

Fix palette highlight not being shown over the selected swatch

This commit is contained in:
Manolis Papadeas 2021-05-27 03:14:19 +03:00
parent 1e6460e439
commit 5a93af7477

View file

@ -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:
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)