Revert "LibGfx: Add directional floating-point scaling to Painter"

This reverts commit ff76a5b8d2.
This commit is contained in:
Andreas Kling 2021-05-03 16:37:05 +02:00
commit 381dcca2f6
Notes: sideshowbarker 2024-07-18 18:44:45 +09:00
4 changed files with 143 additions and 110 deletions

View file

@ -20,7 +20,7 @@ Painter::Painter(Widget& widget)
{
state().font = &widget.font();
auto origin_rect = widget.window_relative_rect();
translate(origin_rect.location());
state().translation = origin_rect.location();
state().clip_rect = origin_rect.intersected(m_target->rect());
m_clip_origin = state().clip_rect;
}