From b3dba22613de912b01ae27ba30c73dfe4c05a340 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 10 Nov 2011 20:59:48 +0100 Subject: Basic background object rendering --- src/stylesheet.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/stylesheet.c') diff --git a/src/stylesheet.c b/src/stylesheet.c index 323b3a4..a164029 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -570,6 +570,19 @@ void default_stylesheet(StyleSheet *ss) sty->valign = V_CENTER; sty->offset_x = +200.0; sty->offset_y = -300.0; + + ss->bgblocks = malloc(sizeof(struct bgblock)); + ss->n_bgblocks = 1; + ss->bgblocks[0].type = BGBLOCK_GRADIENT_Y; + ss->bgblocks[0].min_x = 0.0; + ss->bgblocks[0].max_x = 1024.0; + ss->bgblocks[0].min_y = 0.0; + ss->bgblocks[0].max_y = 768.0; + ss->bgblocks[0].colour1 = strdup("#000000000000"); + ss->bgblocks[0].alpha1 = 1.0; + ss->bgblocks[0].colour2 = strdup("#ffffffffffff"); + ss->bgblocks[0].alpha2 = 1.0; + } -- cgit v1.2.3