mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:27:45 +00:00
LibGfx: Simplify draw_anti_aliased_line() by avoiding transform callback
Instead of taking a callback that performs the coordinate transformation we now just take a bool template parameter. Thanks to Idan for suggesting this! :^)
This commit is contained in:
parent
2f4ab64e8c
commit
f1d44da422
2 changed files with 12 additions and 21 deletions
|
@ -37,8 +37,8 @@ private:
|
|||
OnlyEnds,
|
||||
Full,
|
||||
};
|
||||
template<AntiAliasPolicy policy, typename TransformPoint>
|
||||
void draw_anti_aliased_line(FloatPoint const&, FloatPoint const&, Color, float thickness, Painter::LineStyle style, Color alternate_color, TransformPoint);
|
||||
template<AntiAliasPolicy policy, bool apply_transform>
|
||||
void draw_anti_aliased_line(FloatPoint const&, FloatPoint const&, Color, float thickness, Painter::LineStyle style, Color alternate_color);
|
||||
|
||||
Painter& m_underlying_painter;
|
||||
AffineTransform m_transform;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue