diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-08-12 17:19:20 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-08-12 17:19:20 +0200 |
commit | 6d0e78aadcf111cfd82cc8762ebd43c10c7923ae (patch) | |
tree | 8d5863955735e94a54707440ff064d8509c925a1 /tests | |
parent | 3795b390e6923670d5510acc37315dc9e3668b09 (diff) |
Clarify layout logic
Diffstat (limited to 'tests')
-rw-r--r-- | tests/render_test.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/render_test.c b/tests/render_test.c index adaba8d..64b7583 100644 --- a/tests/render_test.c +++ b/tests/render_test.c @@ -80,6 +80,14 @@ int main(int argc, char *argv[]) if ( fr2->rendering_order == NULL ) return 1; fr2->rendering_order[0] = fr2; fr2->num_ro = 1; + fr2->lop.pad_l = 10.0; + fr2->lop.pad_r = 10.0; + fr2->lop.pad_t = 10.0; + fr2->lop.pad_b = 10.0; + fr2->lop.margin_l = 10.0; + fr2->lop.margin_r = 10.0; + fr2->lop.margin_t = 10.0; + fr2->lop.margin_b = 10.0; fr = calloc(1, sizeof(struct frame)); if ( fr == NULL ) return 1; @@ -88,10 +96,14 @@ int main(int argc, char *argv[]) if ( fr->rendering_order == NULL ) return 1; fr->rendering_order[0] = fr; /* Render parent first */ fr->rendering_order[1] = fr2; - fr->lop.margin_l = 10.0; - fr->lop.margin_r = 10.0; - fr->lop.margin_t = 10.0; - fr->lop.margin_b = 10.0; + fr->lop.margin_l = 0.0; + fr->lop.margin_r = 0.0; + fr->lop.margin_t = 0.0; + fr->lop.margin_b = 0.0; + fr->lop.pad_l = 10.0; + fr->lop.pad_r = 10.0; + fr->lop.pad_t = 10.0; + fr->lop.pad_b = 10.0; fr->num_ro = 2; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |