aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-12-07 21:36:26 +0100
committerThomas White <taw@bitwiz.org.uk>2012-12-07 21:36:26 +0100
commitd625f947719e1cf9f57b26229de011561cd29024 (patch)
tree727032533e48a8b412c613ced5b862243cec8383 /src
parent6774d67e7c47355faceaeb9356f8d9b687613c9a (diff)
Fix two obvious bugs
Diffstat (limited to 'src')
-rw-r--r--src/render.c4
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;