mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
PixelPaint: Fix lasso tool preview when zoomed in
Previously only part of the preview would be visible when zoomed in, with less visible the more you zoomed. This also now doesn't scale the preview line thickness, similar to other image editing programs.
This commit is contained in:
parent
fccda26ef9
commit
458ca83d8c
2 changed files with 9 additions and 19 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
#include <LibGfx/Path.h>
|
||||
|
||||
namespace PixelPaint {
|
||||
|
||||
|
@ -36,7 +37,7 @@ private:
|
|||
Gfx::IntPoint m_start_position;
|
||||
Gfx::IntPoint m_most_recent_position;
|
||||
RefPtr<Gfx::Bitmap> m_selection_bitmap;
|
||||
RefPtr<Gfx::Bitmap> m_preview_bitmap;
|
||||
Gfx::Path m_preview_path;
|
||||
|
||||
Gfx::IntPoint m_top_left;
|
||||
Gfx::IntPoint m_bottom_right;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue