mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
PixelPaint: Rename Layer::resize() to Layer::scale()
This name more accurately describes the transform being performed.
This commit is contained in:
parent
690f3ae43b
commit
bdaad815a1
4 changed files with 13 additions and 13 deletions
|
@ -124,9 +124,9 @@ void MoveTool::on_mouseup(Layer* layer, MouseEvent& event)
|
|||
return;
|
||||
|
||||
if (m_scaling) {
|
||||
auto resized_or_error = m_editor->active_layer()->resize(m_new_layer_rect, Gfx::Painter::ScalingMode::BilinearBlend);
|
||||
if (resized_or_error.is_error())
|
||||
GUI::MessageBox::show_error(m_editor->window(), MUST(String::formatted("Failed to resize layer: {}", resized_or_error.error().string_literal())));
|
||||
auto scaled_layer_or_error = m_editor->active_layer()->scale(m_new_layer_rect, Gfx::Painter::ScalingMode::BilinearBlend);
|
||||
if (scaled_layer_or_error.is_error())
|
||||
GUI::MessageBox::show_error(m_editor->window(), MUST(String::formatted("Failed to resize layer: {}", scaled_layer_or_error.error().string_literal())));
|
||||
else
|
||||
m_editor->layers_did_change();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue