Andreas Kling
c333aec9f3
PixelPaint: Display an error message if saving to PP file fails
2021-06-15 01:16:34 +02:00
Andreas Kling
68a307be4e
PixelPaint: Use ImageDecoder to load images out-of-process
...
This sandboxes the image decoding work done by PixelPaint to prevent
bugs in the decoding framework from compromising PixelPaint itself. :^)
2021-06-12 11:19:29 +02:00
Andreas Kling
92203c9821
PixelPaint: Don't allow Image::try_create_from_bitmap(nullptr)
...
This is not a valid use-case so let's prevent it at compile time.
2021-06-12 11:19:29 +02:00
Andreas Kling
c7f7c1f7f0
PixelPaint: Use move semantics around Layer construction and accessors
2021-06-12 11:19:29 +02:00
Andreas Kling
9c5de113b1
PixelPaint: Rename Layer::create_foo() => Layer::try_create_foo()
2021-06-11 23:06:46 +02:00
Andreas Kling
a9e98bad8a
PixelPaint: Rename Image::create_foo() => Image::try_create_foo()
...
Factory functions that may fail should be called try_create().
2021-06-11 22:51:10 +02:00
Marco Cutecchia
ea03b43fff
PixelPaint: Update Image.{cpp, h} to use east const
2021-06-02 18:07:14 +02:00
Marco Cutecchia
76adac103e
PixelPaint: Support opening more image file formats
...
Previously we could only open .pp files, now we can open all formats
supported by Gfx::Bitmap::load_from_file
2021-06-02 18:07:14 +02:00
Andreas Kling
b91c49364d
AK: Rename adopt() to adopt_ref()
...
This makes it more symmetrical with adopt_own() (which is used to
create a NonnullOwnPtr from the result of a naked new.)
2021-04-23 16:46:57 +02:00
Brian Gianforcaro
1682f0b760
Everything: Move to SPDX license identifiers in all files.
...
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Andreas Kling
6793574003
LibGfx: Improve PNG encoder API somewhat
...
This is still far from ideal, but let's at least make it take a
Gfx::Bitmap const&.
2021-04-19 23:49:16 +02:00
Andreas Kling
e0f32626bc
LibGfx: Rename 32-bit BitmapFormats to BGRA8888 and BGRx888x
...
The previous names (RGBA32 and RGB32) were misleading since that's not
the actual byte order in memory. The new names reflect exactly how the
color values get laid out in bitmap data.
2021-03-16 11:50:03 +01:00
Andreas Kling
5d180d1f99
Everywhere: Rename ASSERT => VERIFY
...
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED)
Since all of these checks are done in release builds as well,
let's rename them to VERIFY to prevent confusion, as everyone is
used to assertions being compiled out in release.
We can introduce a new ASSERT macro that is specifically for debug
checks, but I'm doing this wholesale conversion first since we've
accumulated thousands of these already, and it's not immediately
obvious which ones are suitable for ASSERT.
2021-02-23 20:56:54 +01:00
asynts
acdcf59a33
Everywhere: Remove unnecessary debug comments.
...
It would be tempting to uncomment these statements, but that won't work
with the new changes.
This was done with the following commands:
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/#define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/#define/ { toggle = 1 }' {} \;
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/ #define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/ #define/ { toggle = 1 }' {} \;
2021-01-25 09:47:36 +01:00
Pierre
8e265b512a
PixelPaint: adding an option to export as PNG
2021-01-22 20:39:25 +01:00
Andreas Kling
dc28c07fa5
Applications: Move to Userland/Applications/
2021-01-12 12:05:23 +01:00