projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vanity.dat -> titleimg.dat
[hackover2013-badge-firmware.git]
/
badge
/
util
/
rectangle.h
diff --git
a/badge/util/rectangle.h
b/badge/util/rectangle.h
index
4fe5c0e
..
70d43ba
100644
(file)
--- a/
badge/util/rectangle.h
+++ b/
badge/util/rectangle.h
@@
-13,7
+13,14
@@
static inline vec2d vec2d_add(vec2d v1, vec2d v2) {
fixed_point_add(v1.x, v2.x),
fixed_point_add(v1.y, v2.y)
};
+ return r;
+}
+static inline vec2d vec2d_sub(vec2d v1, vec2d v2) {
+ vec2d r = {
+ fixed_point_sub(v1.x, v2.x),
+ fixed_point_sub(v1.y, v2.y)
+ };
return r;
}
This page took
0.021293 seconds
and
4
git commands to generate.