1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 19:12:18 +00:00
serenity/Userland/Applications/PixelPaint
Timothy Slater 25ac38cac1 PixelPaint: Make erase_selection work for non-rectangular selections
Layer::erase_selection used to erase the entire bounding box of the
selection. With the add/subtract merge modes for the selection tool it
is possible to create selections which are not rectangular. This leads
to deleting pixels that were not selected.

This change adjusts the erase behavior to walk the selection rect and
check if a pixel is selected or not before deleting.
2022-08-31 16:59:22 +01:00
..
Filters PixelPaint: Show more specific Undo/Redo action text 2022-08-21 20:33:03 +02:00
Tools PixelPaint: Add Wand Select Tool 2022-08-31 16:30:23 +02:00
CMakeLists.txt PixelPaint: Add Wand Select Tool 2022-08-31 16:30:23 +02:00
CreateNewImageDialog.cpp PixelPaint: Allow configuration of default image size through GUI 2022-08-13 09:10:29 +01:00
CreateNewImageDialog.h PixelPaint: Convert to east-const style 2021-06-11 22:51:10 +02:00
CreateNewLayerDialog.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
CreateNewLayerDialog.h PixelPaint: Convert to east-const style 2021-06-11 22:51:10 +02:00
EditGuideDialog.cpp Applications+Games+LibGUI: Fix layout problems 2022-06-30 11:51:25 +02:00
EditGuideDialog.gml Applications+Games+LibGUI: Fix layout problems 2022-06-30 11:51:25 +02:00
EditGuideDialog.h PixelPaint: Keep a RefPtr to offset_text_box in EditGuideDialog 2021-11-27 11:04:48 +01:00
FilterGallery.cpp PixelPaint: Rebuild FilterGallery tree using TreeViewModel 2022-05-13 16:31:03 +02:00
FilterGallery.gml PixelPaint: Tweak FilterGallery layout 2022-07-15 12:34:25 +02:00
FilterGallery.h PixelPaint: Add a preview in FilterGallery 2022-02-12 12:21:35 +01:00
FilterParams.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
FilterPreviewWidget.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
FilterPreviewWidget.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
FilterTreeModel.cpp PixelPaint: Add Median filter 2022-08-14 18:24:55 +01:00
FilterTreeModel.h PixelPaint: Rebuild FilterGallery tree using TreeViewModel 2022-05-13 16:31:03 +02:00
Guide.h AK: Rename create<T> => make_ref_counted<T> 2021-09-03 02:36:09 +02:00
HistogramWidget.cpp PixelPaint: Avoid division-by-zero in HistogramWidget 2022-08-23 22:39:27 +02:00
HistogramWidget.h PixelPaint: Add a histogram widget 2022-04-21 17:26:52 +02:00
IconBag.cpp PixelPaint: Add more icons 2022-08-24 12:01:19 +02:00
IconBag.h PixelPaint: Add more icons 2022-08-24 12:01:19 +02:00
Image.cpp PixelPaint: Cropping to content with moved layers was broken 2022-08-28 11:22:42 +01:00
Image.h PixelPaint: Move selection from ImageEditor to Image 2022-08-26 01:04:52 +02:00
ImageEditor.cpp PixelPaint: Ask the current tool for the preferred pixel location 2022-08-31 12:20:55 +02:00
ImageEditor.h PixelPaint: Move selection from ImageEditor to Image 2022-08-26 01:04:52 +02:00
Layer.cpp PixelPaint: Make erase_selection work for non-rectangular selections 2022-08-31 16:59:22 +01:00
Layer.h PixelPaint: Add simple "Crop Image to Content" feature 2022-08-23 22:39:27 +02:00
LayerListWidget.cpp PixelPaint: Draw layer thumbnails with bilinear filtering 2022-03-31 18:25:06 +02:00
LayerListWidget.h PixelPaint: Change EditMode of Layer when double clicking on thumbnail 2022-03-08 22:07:12 +01:00
LayerPropertiesWidget.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LayerPropertiesWidget.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
LevelsDialog.cpp PixelPaint: Show more specific Undo/Redo action text 2022-08-21 20:33:03 +02:00
LevelsDialog.gml PixelPaint: Add level sliders for brightness, contrast and gamma 2022-06-21 18:23:01 +01:00
LevelsDialog.h PixelPaint: Add level sliders for brightness, contrast and gamma 2022-06-21 18:23:01 +01:00
main.cpp Base: Launch ImageDecoder at session start-up 2022-08-14 21:52:35 +01:00
MainWidget.cpp PixelPaint: Move selection from ImageEditor to Image 2022-08-26 01:04:52 +02:00
MainWidget.h PixelPaint: Show more specific Undo/Redo action text 2022-08-21 20:33:03 +02:00
Mask.cpp PixelPaint: Move Mask::{get, set, to_index} to the header file 2021-10-24 17:02:44 +02:00
Mask.h PixelPaint: Move Mask::{get, set, to_index} to the header file 2021-10-24 17:02:44 +02:00
PaletteWidget.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
PaletteWidget.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
PixelPaintWindow.gml Userland: Set tab-widget properties in GML instead of code 2022-05-11 20:16:43 +02:00
ProjectLoader.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
ProjectLoader.h PixelPaint: Use FileSystemAccessClient::try_* APIs 2022-01-20 10:39:12 +01:00
ResizeImageDialog.cpp PixelPaint: Add Smooth Pixels scaling option 2022-06-16 14:26:55 +01:00
ResizeImageDialog.gml Applications+Games+LibGUI: Fix layout problems 2022-06-30 11:51:25 +02:00
ResizeImageDialog.h PixelPaint: Add Image>Resize Image... dialog. (Front end) 2022-05-23 00:12:19 +02:00
Selection.cpp PixelPaint: Make selection changes undoable 2022-08-26 01:04:52 +02:00
Selection.h PixelPaint: Fix const correctness of Selection::in_interactive_selection 2022-08-28 10:14:18 +01:00
ToolboxWidget.cpp PixelPaint: Add Wand Select Tool 2022-08-31 16:30:23 +02:00
ToolboxWidget.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00
ToolPropertiesWidget.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
ToolPropertiesWidget.h Applications: Use default constructors/destructors 2022-02-14 22:06:55 +00:00