git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only slightly totally broken SVG transformations
[ipdf/code.git]
/
src
/
quadtree.cpp
diff --git
a/src/quadtree.cpp
b/src/quadtree.cpp
index
e93a0f0
..
04630b7
100644
(file)
--- a/
src/quadtree.cpp
+++ b/
src/quadtree.cpp
@@
-12,11
+12,11
@@
Rect TransformToQuadChild(const Rect& src, QuadTreeNodeChildren child_type)
dst.h *= 2;
if (child_type == QTC_BOTTOM_LEFT || child_type == QTC_BOTTOM_RIGHT)
{
dst.h *= 2;
if (child_type == QTC_BOTTOM_LEFT || child_type == QTC_BOTTOM_RIGHT)
{
- dst.
x
-= 1;
+ dst.
y
-= 1;
}
if (child_type == QTC_TOP_RIGHT || child_type == QTC_BOTTOM_RIGHT)
{
}
if (child_type == QTC_TOP_RIGHT || child_type == QTC_BOTTOM_RIGHT)
{
- dst.
y
-= 1;
+ dst.
x
-= 1;
}
return dst;
}
}
return dst;
}
@@
-30,11
+30,11
@@
Rect TransformFromQuadChild(const Rect& src, QuadTreeNodeChildren child_type)
dst.h *= 0.5;
if (child_type == QTC_BOTTOM_LEFT || child_type == QTC_BOTTOM_RIGHT)
{
dst.h *= 0.5;
if (child_type == QTC_BOTTOM_LEFT || child_type == QTC_BOTTOM_RIGHT)
{
- dst.
x
+= 1;
+ dst.
y
+= 1;
}
if (child_type == QTC_TOP_RIGHT || child_type == QTC_BOTTOM_RIGHT)
{
}
if (child_type == QTC_TOP_RIGHT || child_type == QTC_BOTTOM_RIGHT)
{
- dst.
y
+= 1;
+ dst.
x
+= 1;
}
return dst;
}
}
return dst;
}
UCC
git Repository :: git.ucc.asn.au