Add operator/(wxSize, double)
For some reason, while both operator*(wxSize, double) and wxSize::operator/=(double) existed, this one did not, which was unexpected, so add it too.
This commit is contained in:
@@ -435,6 +435,11 @@ inline wxSize operator*(unsigned long i, const wxSize& s)
|
||||
return wxSize(int(s.x * i), int(s.y * i));
|
||||
}
|
||||
|
||||
inline wxSize operator/(const wxSize& s, double i)
|
||||
{
|
||||
return wxSize(wxRound(s.x / i), wxRound(s.y / i));
|
||||
}
|
||||
|
||||
inline wxSize operator*(const wxSize& s, double i)
|
||||
{
|
||||
return wxSize(wxRound(s.x * i), wxRound(s.y * i));
|
||||
|
||||
Reference in New Issue
Block a user