X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fview.cpp;h=925fa47c54db2933963922a33747fefb0054f10c;hp=2caaadc0709cc7acfdfac032c704cc8439c45f7b;hb=0361b11485ec41d2c2ddeb279abf846f777f5363;hpb=35f1190c8c8036ed11180656769cf0c1cbf7c2b3 diff --git a/src/view.cpp b/src/view.cpp index 2caaadc..925fa47 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -21,7 +21,8 @@ View::View(Document & document, Screen & screen, const Rect & bounds, const Colo : m_use_gpu_transform(USE_GPU_TRANSFORM), m_use_gpu_rendering(USE_GPU_RENDERING), m_bounds_dirty(true), m_buffer_dirty(true), m_render_dirty(true), m_document(document), m_screen(screen), m_cached_display(), m_bounds(bounds), m_colour(colour), m_bounds_ubo(), m_objbounds_vbo(), m_object_renderers(NUMBER_OF_OBJECT_TYPES), m_cpu_rendering_pixels(NULL), - m_show_object_bounds(false), m_perform_shading(USE_SHADING) + m_perform_shading(USE_SHADING), m_show_bezier_bounds(false), m_show_bezier_type(false), + m_show_fill_points(false), m_show_fill_bounds(false) { Debug("View Created - Bounds => {%s}", m_bounds.Str().c_str()); @@ -172,7 +173,7 @@ void View::Render(int width, int height) #ifndef QUADTREE_DISABLED if (m_bounds_dirty) { - if (m_bounds.x > 1.0 || m_bounds.x < 0.0 || m_bounds.y > 1.0 || m_bounds.y < 0.0 || m_bounds.w > 1.0 || m_bounds.h > 1.0) + if (false && (m_bounds.x > 1.0 || m_bounds.x < 0.0 || m_bounds.y > 1.0 || m_bounds.y < 0.0 || m_bounds.w > 1.0 || m_bounds.h > 1.0)) { //TODO: Generate a new parent node. if (m_document.GetQuadTree().nodes[m_current_quadtree_node].parent != QUADTREE_EMPTY)