projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bug fixes, added background image
[winnie]
/
src
/
geom.cc
diff --git
a/src/geom.cc
b/src/geom.cc
index
c9d5c51
..
7561397
100644
(file)
--- 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;