Allow sizes to be divided
@@ -14,6 +14,7 @@ namespace blit {
constexpr Size(int32_t w, int32_t h) : w(w), h(h) {}
inline Size& operator*= (const float a) { w = static_cast<int32_t>(w * a); h = static_cast<int32_t>(h * a); return *this; }
+ inline Size operator / (const int a) { return Size(w / a, h / a);}
bool empty() { return w <= 0 || h <= 0; }
