mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-18 16:21:07 +00:00
Add a comment in Undo::updateUndo() about the usage of get_config_int() function.
This commit is contained in:
parent
7dd78886e2
commit
072b19a9bb
@ -474,6 +474,12 @@ static bool out_of_group(UndoStream* undo_stream)
|
||||
// Called every time a new undo is added.
|
||||
void Undo::updateUndo()
|
||||
{
|
||||
// TODO replace this with the following implementation:
|
||||
// * Add the undo limit to Undo class as a normal member (non-static).
|
||||
// * Add a new AseSprite (wrapper of a generic Sprite).
|
||||
// * Add ASE delegates to listen changes in ASE configuration
|
||||
// * AseSprite should implement a delegate to listen changes to the undo limit,
|
||||
// * When a change is produced, AseSprite updates the wrappedSprite->getUndo()->setUndoLimit().
|
||||
int undo_size_limit = get_config_int("Options", "UndoSizeLimit", 8)*1024*1024;
|
||||
|
||||
// More differences.
|
||||
|
Loading…
x
Reference in New Issue
Block a user