mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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
|
@ -45,7 +45,7 @@ ErrorOr<void> read_image_data(PPMLoadingContext& context)
|
|||
}
|
||||
}
|
||||
|
||||
context.state = PPMLoadingContext::State::Bitmap;
|
||||
context.state = PPMLoadingContext::State::BitmapDecoded;
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue