diff options
Diffstat (limited to 'tests/render_test.c')
-rw-r--r-- | tests/render_test.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/render_test.c b/tests/render_test.c index 5fbb29d..dbc6b57 100644 --- a/tests/render_test.c +++ b/tests/render_test.c @@ -89,8 +89,10 @@ int main(int argc, char *argv[]) sty1->lop.margin_b = 0.0; sty1->lop.x = 0.0; sty1->lop.y = 0.0; - sty1->lop.w = 100.0; - sty1->lop.h = 100.0; + sty1->lop.w = 1.0; + sty1->lop.w_units = UNITS_FRAC; + sty1->lop.h = 1.0; + sty1->lop.h_units = UNITS_FRAC; sty1->name = strdup("Default"); sty2 = calloc(1, sizeof(struct style)); @@ -104,8 +106,10 @@ int main(int argc, char *argv[]) sty2->lop.margin_b = 5.0; sty2->lop.x = 0.0; sty2->lop.y = 0.0; - sty2->lop.w = 100.0; - sty2->lop.h = 100.0; + sty2->lop.w = 1.0; + sty2->lop.w_units = UNITS_FRAC; + sty2->lop.h = 1.0; + sty2->lop.h_units = UNITS_FRAC; sty2->name = strdup("Text frame"); fr2 = calloc(1, sizeof(struct frame)); |