X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fgeom.cc;h=7561397ce4878c60ab8640697f76d86146d0ca34;hb=32869d8ffb64be82541f48166c5e73a6c4336135;hp=c9d5c514dbd2dc86a364ce4829f981c735cb3cb5;hpb=f71618aebfa6b8754dd056689a6c5821b755972c;p=winnie diff --git a/src/geom.cc b/src/geom.cc index c9d5c51..7561397 100644 --- a/src/geom.cc +++ b/src/geom.cc @@ -1,5 +1,18 @@ #include "geom.h" +Rect::Rect() +{ + x = y = width = height = 0; +} + +Rect::Rect(int x, int y, int w, int h) +{ + this->x = x; + this->y = y; + width = w; + height = h; +} + static inline int min(int x, int y) { return x < y ? x : y;