diff options
author | Nico Weber <thakis@chromium.org> | 2021-01-12 20:22:15 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-15 19:13:29 +0100 |
commit | 56cad36ef259332e603df8494cfaee4f34915beb (patch) | |
tree | bedbcfd74272c74aed8eb7f6376c154737d63d23 /Userland/Libraries/LibGfx/Painter.h | |
parent | ddd0c1dd8b2caab3d98c9eb9952754d86cd1e3a5 (diff) | |
download | serenity-56cad36ef259332e603df8494cfaee4f34915beb.zip |
LibGfx: Make Painter::draw_rect() scale-aware
Needed for the window server minimize animation.
draw_rect() can't just call draw_line() because that isn't
draw_op()-aware. The draw_op()-awareness in Painter looks a bit ad-hoc,
but that's for another day.
Diffstat (limited to 'Userland/Libraries/LibGfx/Painter.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Painter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.h b/Userland/Libraries/LibGfx/Painter.h index d8bb2f7cb2..2bb510a34a 100644 --- a/Userland/Libraries/LibGfx/Painter.h +++ b/Userland/Libraries/LibGfx/Painter.h @@ -135,8 +135,8 @@ protected: IntRect to_physical(const IntRect& r) const { return (r * scale()).translated(translation()); } IntPoint to_physical(const IntPoint& p) const { return (p * scale()).translated(translation()); } int scale() const { return state().scale; } - void set_pixel_with_draw_op(u32& pixel, const Color&); - void fill_scanline_with_draw_op(int y, int x, int width, const Color& color); + void set_physical_pixel_with_draw_op(u32& pixel, const Color&); + void fill_physical_scanline_with_draw_op(int y, int x, int width, const Color& color); void fill_rect_with_draw_op(const IntRect&, Color); void blit_with_alpha(const IntPoint&, const Gfx::Bitmap&, const IntRect& src_rect); void blit_with_opacity(const IntPoint&, const Gfx::Bitmap&, const IntRect& src_rect, float opacity); |