X-Git-Url: https://eleni.mutantstargoat.com/git/?p=winnie;a=blobdiff_plain;f=src%2Fgeom.cc;h=7561397ce4878c60ab8640697f76d86146d0ca34;hp=c9d5c514dbd2dc86a364ce4829f981c735cb3cb5;hb=32869d8ffb64be82541f48166c5e73a6c4336135;hpb=2985bfa49497805b4760c066a6288c4b3752d145 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;