aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-10-08 21:09:16 +0200
committerThomas White <taw@bitwiz.org.uk>2012-10-08 21:09:16 +0200
commit43f4a4df59d960442df2faedfd50e5c7c7a55d99 (patch)
tree2ee01715b93ae567a01854485299ac33c6878131 /tests
parentd52c17c36ada874e6a0702808577a603331af095 (diff)
Create PangoLayout when laying out the frame
Because it's necessary to know how much space the contents take up
Diffstat (limited to 'tests')
-rw-r--r--tests/render_test.c2
-rw-r--r--tests/render_test_sc1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/render_test.c b/tests/render_test.c
index 4124216..fc4784e 100644
--- a/tests/render_test.c
+++ b/tests/render_test.c
@@ -59,7 +59,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, struct frame *fr)
gtk_widget_get_allocation(da, &allocation);
- layout_frame(fr, allocation.width, allocation.height);
+ layout_frame(fr, allocation.width, allocation.height, pc);
render_frame(fr, cr, pc);
return FALSE;
diff --git a/tests/render_test_sc1.c b/tests/render_test_sc1.c
index bccc49d..03a8ec5 100644
--- a/tests/render_test_sc1.c
+++ b/tests/render_test_sc1.c
@@ -60,7 +60,7 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, struct frame *fr)
gtk_widget_get_allocation(da, &allocation);
- layout_frame(fr, allocation.width, allocation.height);
+ layout_frame(fr, allocation.width, allocation.height, pc);
render_frame(fr, cr, pc);
return FALSE;