aboutsummaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-11-10 20:59:48 +0100
committerThomas White <taw@bitwiz.org.uk>2011-11-10 20:59:48 +0100
commitb3dba22613de912b01ae27ba30c73dfe4c05a340 (patch)
treed6abe26a8f1189211474ca363adbd5e0b2f1a98d /src/stylesheet.c
parentba31102d1786095ab0e05e6eae6ccce413451d6a (diff)
Basic background object rendering
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c13
1 files changed, 13 insertions, 0 deletions
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;
+
}