LibWeb: Use ceilf() instead of ceil() for float values
This commit is contained in:
parent
d3476c28ba
commit
8a5c50f59d
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/8a5c50f59d Pull-request: https://github.com/SerenityOS/serenity/pull/16382
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 border_style = border_data.line_style;
|
||||
int int_width = ceil(width);
|
||||
int int_width = ceilf(width);
|
||||
|
||||
struct Points {
|
||||
Gfx::IntPoint p1;
|
||||
|
@ -257,7 +257,7 @@ void paint_all_borders(PaintContext& context, Gfx::FloatRect const& bordered_rec
|
|||
top_right = { 0, 0 };
|
||||
|
||||
auto int_width = [&](auto value) -> int {
|
||||
return ceil(value);
|
||||
return ceilf(value);
|
||||
};
|
||||
|
||||
Gfx::IntRect top_border_rect = {
|
||||
|
|
Loading…
Add table
Reference in a new issue