mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-20 12:27:42 +00:00
LibGfx: Fix type of scale factor in Point scale operators
This commit is contained in:
committed by
Andreas Kling
parent
098f06f042
commit
b67eed5b80
@@ -137,7 +137,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
Point<T> operator*(int factor) const { return { m_x * factor, m_y * factor }; }
|
||||
Point<T> operator*(T factor) const { return { m_x * factor, m_y * factor }; }
|
||||
|
||||
Point<T>& operator*=(T factor)
|
||||
{
|
||||
@@ -146,9 +146,9 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
Point<T> operator/(int factor) const { return { m_x / factor, m_y / factor }; }
|
||||
Point<T> operator/(T factor) const { return { m_x / factor, m_y / factor }; }
|
||||
|
||||
Point<T>& operator/=(int factor)
|
||||
Point<T>& operator/=(T factor)
|
||||
{
|
||||
m_x /= factor;
|
||||
m_y /= factor;
|
||||
|
||||
Reference in New Issue
Block a user