1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

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
parent f43adb816e
commit 381dcca2f6
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;
}