GMTA
Repos
33
Followers
51
Following
19

Events

PixelPaint: Remove unused function definition from Image

Created at 4 days ago
pull request closed
PixelPaint: Remove unused function definition from Image

This was accidentally added in #18028.

Created at 4 days ago
issue comment
PixelPaint: Correctly set default layer name

Neither will allow you to create a layer with no name.

Sure, sounds like a different issue though :^) this is about just pressing return in the new layer dialog and ending up with the wrong layer name.

Created at 4 days ago
issue comment
Calculator: Some bug fixes

No, don't close it :( I will work on this tonight!

You're implying that this PR still isn't done, I'll label it as such.

Created at 4 days ago
create branch
GMTA create branch pixelpaint-prevent-empty-layer-name
Created at 4 days ago
pull request opened
PixelPaint: Correctly set default layer name

Previously, if you confirmed the "new layer" dialog without any change to the layer name, the layer would end up with an empty string for its name.

Created at 4 days ago

PixelPaint: Include possible errno description in error messages

In the case where an error is created from an errno, calling string_literal() will print nothing. Using Error's formatter instead gives a more descriptive error message.

PixelPaint: Use new String to format error messages

Created at 4 days ago
pull request closed
PixelPaint: Include possible errno description in error messages

In the case where an error is created from an errno, calling string_literal() will print nothing. Using Error's formatter instead gives a more descriptive error message.

Before: error_message_before

After: descriptive_error_message

Created at 4 days ago

PixelPaint: Add a Duplicate Layer action

The "Duplicate Layer" action inserts a copy of the selected layer into the layer stack. The new layer is placed above the selected layer.

Created at 4 days ago
pull request closed
PixelPaint: Add a Duplicate Layer action

The "Duplicate Layer" action inserts a copy of the selected layer into the layer stack. The new layer is placed above the selected layer.

The new layer is named "(original layer name) copy" with additional copies being sequentially numbered. This matches the behavior of Photoshop.

I chose Ctrl+Shift+D as the shortcut for this feature. This combination matches GIMP and fits in with other layer copying functions we already have.

Video:

https://user-images.githubusercontent.com/2817754/227605103-17b32837-79a2-410a-8bd5-9e7ab5605951.mp4

Created at 4 days ago
issue comment
PixelPaint: Allow lasso tool to select outside the active layer

I'm wondering why we even allow selecting outside of the image/content bounds? It's fine to move the tool there, but the actual selected pixels should stay within the content bounds in my opinion.

This solves your excessive memory usage issue as well as the differences to other paint programs that we have. Ideally, drawing a lasso selection is a simple path that we track, and upon release of the mouse we select all pixels within the content bounds.

Created at 4 days ago

PixelPaint: Make wand tool work when layer and image rects differ

Previously, the position of the mask used to calculate the new selection did not match the position of the active layer. The program would crash when trying to set a mask pixel outside the bounds of the active layer.

Created at 4 days ago
pull request closed
PixelPaint: Make wand tool work when layer and image rects differ

Previously, the position of the mask used to calculate the new selection did not match the position of the active layer. The program would crash when trying to set a mask pixel outside the bounds of the active layer.

Minimal steps required to reproduce the issue on master:

  1. Open PixelPaint with the default blank image.
  2. Use the arrow keys with the Move Tool to move the Background layer one pixel in any direction.
  3. Click the Wand Select Tool and click anywhere on the image.
Created at 4 days ago
issue comment
PixelPaint: Make image cropping actions work with multiple layers

https://user-images.githubusercontent.com/3210731/227746872-c68a7591-e2b4-457e-8585-836ddd938e3c.mp4

Created at 4 days ago