1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibGfx/PortableFormat: Simplify the State enum

This enum used to store very precise state about the decoding process,
let's simplify that by only including two steps: HeaderDecoder and
BitmapDecoded.
This commit is contained in:
Lucas CHOLLET 2023-07-10 16:41:42 -04:00 committed by Sam Atkins
parent f6ce06d56b
commit f3ff9c26bc
5 changed files with 12 additions and 26 deletions

View file

@ -49,7 +49,7 @@ ErrorOr<void> read_image_data(PBMLoadingContext& context)
}
}
context.state = PBMLoadingContext::State::Bitmap;
context.state = PBMLoadingContext::State::BitmapDecoded;
return {};
}
}