mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 04:13:50 +00:00
UndoTransaction::newLayer() returns a LayerImage.
This commit is contained in:
parent
100894ceea
commit
ccd6051de3
@ -357,7 +357,7 @@ void UndoTransaction::replaceStockImage(int image_index, Image* new_image)
|
|||||||
/**
|
/**
|
||||||
* Creates a new transparent layer.
|
* Creates a new transparent layer.
|
||||||
*/
|
*/
|
||||||
Layer* UndoTransaction::newLayer()
|
LayerImage* UndoTransaction::newLayer()
|
||||||
{
|
{
|
||||||
// new layer
|
// new layer
|
||||||
LayerImage* layer = new LayerImage(m_sprite);
|
LayerImage* layer = new LayerImage(m_sprite);
|
||||||
|
@ -85,7 +85,7 @@ public:
|
|||||||
void replaceStockImage(int image_index, Image* new_image);
|
void replaceStockImage(int image_index, Image* new_image);
|
||||||
|
|
||||||
// for layers
|
// for layers
|
||||||
Layer* newLayer();
|
LayerImage* newLayer();
|
||||||
void removeLayer(Layer* layer);
|
void removeLayer(Layer* layer);
|
||||||
void moveLayerAfter(Layer *layer, Layer *after_this);
|
void moveLayerAfter(Layer *layer, Layer *after_this);
|
||||||
void cropLayer(Layer* layer, int x, int y, int w, int h, int bgcolor);
|
void cropLayer(Layer* layer, int x, int y, int w, int h, int bgcolor);
|
||||||
|
Loading…
Reference in New Issue
Block a user