mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
LibWeb: Fix a (charming) comment typo
This commit is contained in:
parent
3a31f37b3d
commit
7bb4cd74b8
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ void CanvasRenderingContext2D::stroke_rect(float x, float y, float width, float
|
||||||
auto& drawing_state = this->drawing_state();
|
auto& drawing_state = this->drawing_state();
|
||||||
|
|
||||||
auto rect = drawing_state.transform.map(Gfx::FloatRect(x, y, width, height));
|
auto rect = drawing_state.transform.map(Gfx::FloatRect(x, y, width, height));
|
||||||
// We could remove the rounding here, but the lines look better when they have whole number pixel endponts.
|
// We could remove the rounding here, but the lines look better when they have whole number pixel endpoints.
|
||||||
auto top_left = drawing_state.transform.map(Gfx::FloatPoint(x, y)).to_rounded<float>();
|
auto top_left = drawing_state.transform.map(Gfx::FloatPoint(x, y)).to_rounded<float>();
|
||||||
auto top_right = drawing_state.transform.map(Gfx::FloatPoint(x + width - 1, y)).to_rounded<float>();
|
auto top_right = drawing_state.transform.map(Gfx::FloatPoint(x + width - 1, y)).to_rounded<float>();
|
||||||
auto bottom_left = drawing_state.transform.map(Gfx::FloatPoint(x, y + height - 1)).to_rounded<float>();
|
auto bottom_left = drawing_state.transform.map(Gfx::FloatPoint(x, y + height - 1)).to_rounded<float>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue