mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:57:35 +00:00
LibWeb: Use ceilf() instead of ceil() for float values
This commit is contained in:
parent
d3476c28ba
commit
8a5c50f59d
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ void paint_border(PaintContext& context, BorderEdge edge, Gfx::IntRect const& re
|
||||||
|
|
||||||
auto color = border_data.color;
|
auto color = border_data.color;
|
||||||
auto border_style = border_data.line_style;
|
auto border_style = border_data.line_style;
|
||||||
int int_width = ceil(width);
|
int int_width = ceilf(width);
|
||||||
|
|
||||||
struct Points {
|
struct Points {
|
||||||
Gfx::IntPoint p1;
|
Gfx::IntPoint p1;
|
||||||
|
@ -257,7 +257,7 @@ void paint_all_borders(PaintContext& context, Gfx::FloatRect const& bordered_rec
|
||||||
top_right = { 0, 0 };
|
top_right = { 0, 0 };
|
||||||
|
|
||||||
auto int_width = [&](auto value) -> int {
|
auto int_width = [&](auto value) -> int {
|
||||||
return ceil(value);
|
return ceilf(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
Gfx::IntRect top_border_rect = {
|
Gfx::IntRect top_border_rect = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue