diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-12-07 21:36:26 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-12-07 21:36:26 +0100 |
commit | d625f947719e1cf9f57b26229de011561cd29024 (patch) | |
tree | 727032533e48a8b412c613ced5b862243cec8383 /src/render.c | |
parent | 6774d67e7c47355faceaeb9356f8d9b687613c9a (diff) |
Fix two obvious bugs
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render.c b/src/render.c index 46f0611..f9293ea 100644 --- a/src/render.c +++ b/src/render.c @@ -258,7 +258,7 @@ static int render_frame(struct frame *fr, cairo_t *cr, /* Render it and hence (recursives) find out how much space it * actually needs.*/ - render_frame(ch, cr, max_w, max_h); + render_frame(ch, cr, child_max_w, child_max_h); /* Position the frame within the parent */ position_frame(ch, fr); @@ -325,7 +325,7 @@ static int composite_frames_at_level(struct frame *fr, cairo_t *cr, for ( i=0; i<fr->num_children; i++ ) { n += composite_frames_at_level(fr->children[i], cr, - level, cur_level); + level, cur_level+1); } return n; |