mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
LibGfx: Make some GIFLoader magic numbers a bit less magic
No behavior change.
This commit is contained in:
parent
967c82c1be
commit
700fe315cf
1 changed files with 3 additions and 3 deletions
|
@ -455,7 +455,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
||||||
if (stream.handle_any_error())
|
if (stream.handle_any_error())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (sentinel == 0x21) {
|
if (sentinel == '!') {
|
||||||
u8 extension_type = 0;
|
u8 extension_type = 0;
|
||||||
stream >> extension_type;
|
stream >> extension_type;
|
||||||
if (stream.handle_any_error())
|
if (stream.handle_any_error())
|
||||||
|
@ -528,7 +528,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sentinel == 0x2c) {
|
if (sentinel == ',') {
|
||||||
context.images.append(move(current_image));
|
context.images.append(move(current_image));
|
||||||
auto& image = context.images.last();
|
auto& image = context.images.last();
|
||||||
|
|
||||||
|
@ -595,7 +595,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sentinel == 0x3b) {
|
if (sentinel == ';') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue