mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-23 22:43:32 +00:00
Fixed a problem when setting tile rectangle.
This commit is contained in:
parent
0a6b8a5955
commit
5097767564
@ -295,8 +295,10 @@ static int set_grid_button_select_hook(JWidget widget, int user_data)
|
||||
Sprite *sprite = current_sprite;
|
||||
|
||||
if (sprite && sprite->mask && sprite->mask->bitmap) {
|
||||
JRect rect = jrect_new(sprite->mask->x, sprite->mask->y,
|
||||
sprite->mask->w, sprite->mask->h);
|
||||
JRect rect = jrect_new(sprite->mask->x,
|
||||
sprite->mask->y,
|
||||
sprite->mask->x+sprite->mask->w,
|
||||
sprite->mask->y+sprite->mask->h);
|
||||
set_grid(rect);
|
||||
jrect_free(rect);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user