LibWeb: Prevent double promotion in paint_background

This commit is contained in:
implicitfield 2023-06-16 17:13:26 +04:00 committed by Andreas Kling
parent 007f3cdb00
commit 58c4e266e9
Notes: sideshowbarker 2024-07-17 07:38:17 +09:00

View File

@ -252,7 +252,7 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet
x_step = image_rect.width();
repeat_x = false;
} 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));
repeat_x = true;
}