mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 13:19:02 +00:00
LibWeb: Prevent double promotion in paint_background
This commit is contained in:
parent
007f3cdb00
commit
58c4e266e9
Notes:
sideshowbarker
2024-07-17 07:38:17 +09:00
Author: https://github.com/implicitfield
Commit: 58c4e266e9
Pull-request: https://github.com/SerenityOS/serenity/pull/18522
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet
|
||||||
x_step = image_rect.width();
|
x_step = image_rect.width();
|
||||||
repeat_x = false;
|
repeat_x = false;
|
||||||
} else {
|
} else {
|
||||||
auto space = fmod(background_positioning_area.width().to_float(), image_rect.width().to_float());
|
auto space = fmod(background_positioning_area.width().to_double(), image_rect.width().to_double());
|
||||||
x_step = image_rect.width() + (space / static_cast<double>(whole_images - 1));
|
x_step = image_rect.width() + (space / static_cast<double>(whole_images - 1));
|
||||||
repeat_x = true;
|
repeat_x = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue