Open 1j01 opened 6 years ago
To fix "out of memory" errors:
ImageData
objects are created
make_or_update_undoable
canvas_has_any_apparent_image_data
(this is part of code meant to detect an out-of-memory scenario, but I didn't realize it can also fail due to lack of memory!)
JS Paint allows way more undos than old versions of MS Paint (3 in Win95/98, and 50 in Win7), but it's way less efficient about it. It currently just naively stores the entire image for every undo state.
It should use rectangle-bounded operations. This is partially implemented in Mopaint.