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
Fix a huge bunch of memory corruption bugs in GL
[ipdf/code.git]
/
src
/
view.cpp
diff --git
a/src/view.cpp
b/src/view.cpp
index
4a7bb08
..
54e4155
100644
(file)
--- a/
src/view.cpp
+++ b/
src/view.cpp
@@
-20,6
+20,8
@@
View::View(Document & document, Screen & screen, const Rect & bounds, const Colo
{
Debug("View Created - Bounds => {%s}", m_bounds.Str().c_str());
+ screen.SetView(this); // oh dear...
+
// Create ObjectRenderers - new's match delete's in View::~View
//TODO: Don't forget to put new renderers here or things will be segfaultastic
m_object_renderers[RECT_FILLED] = new RectFilledRenderer();
@@
-181,7
+183,7
@@
void View::RenderQuadtreeNode(int width, int height, QuadTreeIndex node, int rem
Rect old_bounds = m_bounds;
if (node == QUADTREE_EMPTY) return;
if (!remaining_depth) return;
- Debug("Rendering QT node %d, (objs: %d -- %d)\n", node, m_document.GetQuadTree().nodes[node].object_begin, m_document.GetQuadTree().nodes[node].object_end);
+
//
Debug("Rendering QT node %d, (objs: %d -- %d)\n", node, m_document.GetQuadTree().nodes[node].object_begin, m_document.GetQuadTree().nodes[node].object_end);
RenderRange(width, height, m_document.GetQuadTree().nodes[node].object_begin, m_document.GetQuadTree().nodes[node].object_end);
m_bounds = TransformToQuadChild(old_bounds, QTC_TOP_LEFT);
UCC
git Repository :: git.ucc.asn.au