More forgiving selection options

This commit is contained in:
Clement Roblot 2024-12-03 15:02:22 +07:00 committed by ArthurSonzogni
parent f21cfd45b7
commit d755ab31f1
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -19,7 +19,10 @@ struct SelectionOption {
static SelectionOption Simple();
// Style:
std::function<void(Pixel& pixel)> transform ;
std::function<void(Pixel& pixel)> transform = [](Pixel& pixel) {
pixel.inverted = true;
};
// Observers:
/// Called when the selection changed.