if (ND_shape(n) == NULL)
return;
- if (node_in_layer(n->graph, n) && node_in_CB(n)
- && (ND_state(n) != Page)) {
+ if (node_in_layer(n->graph, n) && node_in_CB(n) && (ND_state(n) != Page)) {
gvrender_begin_node(gvc, n);
if (((s = agget(n, "href")) && s[0])
|| ((s = agget(n, "URL")) && s[0])) {
/* FIXME - some of setup_pagination should be in emit_init() */
setup_pagination(gvc, g);
+ gvc->clip.UR.x = ROUND(gvc->focus.x + (gvc->width+1) / (gvc->zoom * 2.));
+ gvc->clip.UR.y = ROUND(gvc->focus.y + (gvc->height+1) / (gvc->zoom * 2.));
+ gvc->clip.LL.x = ROUND(gvc->focus.x - (gvc->width+1) / (gvc->zoom * 2.));
+ gvc->clip.LL.y = ROUND(gvc->focus.y - (gvc->height+1) / (gvc->zoom * 2.));
+
gvrender_begin_graph(gvc, g, PB, PFC);
if (flags & EMIT_COLORS) {
gvrender_set_fillcolor(gvc, DEFAULT_FILL);
double zoom; /* viewport zoom factor */
pointf focus; /* viewport focus in graph units */
pointf compscale; /* composite device scale incl: scale, zoom, dpi, y_goes_down */
+ box clip; /* clip region in graph units */
/* gvrender_begin_page() */
point page;