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:
parent
f6ce06d56b
commit
f3ff9c26bc
5 changed files with 12 additions and 26 deletions
|
@ -49,7 +49,7 @@ ErrorOr<void> read_image_data(PBMLoadingContext& context)
|
|||
}
|
||||
}
|
||||
|
||||
context.state = PBMLoadingContext::State::Bitmap;
|
||||
context.state = PBMLoadingContext::State::BitmapDecoded;
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue