mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
PixelPaint: Rename typo'ed BMPWriter in serialize_as_json()
This commit is contained in:
parent
937785f6c1
commit
0dd5f5672c
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ void Image::serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const
|
||||||
{
|
{
|
||||||
auto json_layers = MUST(json.add_array("layers"));
|
auto json_layers = MUST(json.add_array("layers"));
|
||||||
for (const auto& layer : m_layers) {
|
for (const auto& layer : m_layers) {
|
||||||
Gfx::BMPWriter bmp_dumber;
|
Gfx::BMPWriter bmp_writer;
|
||||||
auto json_layer = MUST(json_layers.add_object());
|
auto json_layer = MUST(json_layers.add_object());
|
||||||
MUST(json_layer.add("width", layer.size().width()));
|
MUST(json_layer.add("width", layer.size().width()));
|
||||||
MUST(json_layer.add("height", layer.size().height()));
|
MUST(json_layer.add("height", layer.size().height()));
|
||||||
|
@ -127,7 +127,7 @@ void Image::serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const
|
||||||
MUST(json_layer.add("visible", layer.is_visible()));
|
MUST(json_layer.add("visible", layer.is_visible()));
|
||||||
MUST(json_layer.add("selected", layer.is_selected()));
|
MUST(json_layer.add("selected", layer.is_selected()));
|
||||||
// FIXME: Respect mask
|
// FIXME: Respect mask
|
||||||
MUST(json_layer.add("bitmap", encode_base64(bmp_dumber.dump(layer.display_bitmap()))));
|
MUST(json_layer.add("bitmap", encode_base64(bmp_writer.dump(layer.content_bitmap()))));
|
||||||
MUST(json_layer.finish());
|
MUST(json_layer.finish());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue