mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
PixelPaint: Fix typo in variable name
This commit is contained in:
parent
a30b956e94
commit
6b3688147f
2 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ void MoveTool::on_mousemove(Layer* layer, MouseEvent& event)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
scaling_origin.translate_by(delta);
|
scaling_origin.translate_by(delta);
|
||||||
if (m_keep_ascept_ratio) {
|
if (m_keep_aspect_ratio) {
|
||||||
auto aspect_ratio = m_layer_being_moved->size().aspect_ratio();
|
auto aspect_ratio = m_layer_being_moved->size().aspect_ratio();
|
||||||
scaling_origin = opposite_corner.end_point_for_aspect_ratio(scaling_origin, aspect_ratio);
|
scaling_origin = opposite_corner.end_point_for_aspect_ratio(scaling_origin, aspect_ratio);
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ void MoveTool::on_mouseup(Layer* layer, MouseEvent& event)
|
||||||
bool MoveTool::on_keydown(GUI::KeyEvent& event)
|
bool MoveTool::on_keydown(GUI::KeyEvent& event)
|
||||||
{
|
{
|
||||||
if (event.key() == Key_Shift)
|
if (event.key() == Key_Shift)
|
||||||
m_keep_ascept_ratio = true;
|
m_keep_aspect_ratio = true;
|
||||||
|
|
||||||
if (m_scaling)
|
if (m_scaling)
|
||||||
return true;
|
return true;
|
||||||
|
@ -172,7 +172,7 @@ bool MoveTool::on_keydown(GUI::KeyEvent& event)
|
||||||
void MoveTool::on_keyup(GUI::KeyEvent& event)
|
void MoveTool::on_keyup(GUI::KeyEvent& event)
|
||||||
{
|
{
|
||||||
if (event.key() == Key_Shift)
|
if (event.key() == Key_Shift)
|
||||||
m_keep_ascept_ratio = false;
|
m_keep_aspect_ratio = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveTool::on_second_paint(Layer const* layer, GUI::PaintEvent& event)
|
void MoveTool::on_second_paint(Layer const* layer, GUI::PaintEvent& event)
|
||||||
|
|
|
@ -42,7 +42,7 @@ private:
|
||||||
Gfx::IntRect m_new_layer_rect;
|
Gfx::IntRect m_new_layer_rect;
|
||||||
bool m_scaling { false };
|
bool m_scaling { false };
|
||||||
Optional<ResizeAnchorLocation const> m_resize_anchor_location {};
|
Optional<ResizeAnchorLocation const> m_resize_anchor_location {};
|
||||||
bool m_keep_ascept_ratio { false };
|
bool m_keep_aspect_ratio { false };
|
||||||
|
|
||||||
RefPtr<Gfx::Bitmap> m_cached_preview_bitmap { nullptr };
|
RefPtr<Gfx::Bitmap> m_cached_preview_bitmap { nullptr };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue