mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Fixed some new-line issues.
This commit is contained in:
parent
324435760d
commit
470ae96c3b
@ -100,13 +100,12 @@ void FlipCommand::execute(Context* context)
|
|||||||
|
|
||||||
image = GetImage2(sprite, &x, &y, NULL);
|
image = GetImage2(sprite, &x, &y, NULL);
|
||||||
if (!image)
|
if (!image)
|
||||||
return;
|
return;
|
||||||
|
// mask is empty?
|
||||||
// mask is empty?
|
if (sprite->mask->is_empty()) {
|
||||||
if (sprite->mask->is_empty()) {
|
// so we flip the entire image
|
||||||
// so we flip the entire image
|
x1 = 0;
|
||||||
x1 = 0;
|
y1 = 0;
|
||||||
y1 = 0;
|
|
||||||
x2 = image->w-1;
|
x2 = image->w-1;
|
||||||
y2 = image->h-1;
|
y2 = image->h-1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user