mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibGfx: Remove Bitmap and Painter "scale" concept
We don't need intrinsic scale factors for Gfx::Bitmap in Ladybird, as everything flows through the CSS / device pixel ratio mechanism. This patch also removes various unused functions instead of adapting them to the change.
This commit is contained in:
@@ -34,10 +34,6 @@ static Gfx::IntRect rect_where_pixels_are_different(Bitmap const& a, Bitmap cons
|
||||
{
|
||||
VERIFY(a.size() == b.size());
|
||||
|
||||
// FIXME: This works on physical pixels.
|
||||
VERIFY(a.scale() == 1);
|
||||
VERIFY(b.scale() == 1);
|
||||
|
||||
int number_of_equal_pixels_at_top = 0;
|
||||
while (number_of_equal_pixels_at_top < a.height() && are_scanlines_equal(a, b, number_of_equal_pixels_at_top))
|
||||
++number_of_equal_pixels_at_top;
|
||||
|
||||
Reference in New Issue
Block a user