mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
LibWeb: Prevent double promotion in paint_background
This commit is contained in:
parent
007f3cdb00
commit
58c4e266e9
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();
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue