summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 00:51:34 +0000
committerracarr <racarr>2007-01-29 00:51:34 +0000
commitcb233182cebf912b9f3391e49ac06da6daf54348 (patch)
tree16c8ac6cf7ca2b2c994e995888544e3c7ab0f02b
parentc0f3f42de118cc8def56a81a072dd668828472d7 (diff)
downloadberyl-desktop-manager-cb233182cebf912b9f3391e49ac06da6daf54348.tar.gz
beryl-desktop-manager-cb233182cebf912b9f3391e49ac06da6daf54348.tar.bz2
attrib->alpha is float, initiate attrib->cairoOperator to CAIRO_OPERATOR_OVER
-rw-r--r--src/bdm.c4
-rw-r--r--src/bdm.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 1959353..7175a4a 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -192,8 +192,10 @@ static void on_alpha_screen_changed(GtkWidget * widget, GdkScreen * pOldScreen,
static void initPaintAttribs (BDMPaintAttribs * attribs)
{
- attribs->width = attribs->height = attribs->x = attribs->y = attribs->alpha = 0;
+ attribs->width = attribs->height = attribs->x = attribs->y = attribs->xRot = 100;
attribs->needsPainting = attribs->updateFont = 0;
+ attribs->alpha = 1.0f;
+ attribs->cairoOperator = CAIRO_OPERATOR_OVER;
}
static int loadWidget (char * path)
diff --git a/src/bdm.h b/src/bdm.h
index 10a7058..62d62a1 100644
--- a/src/bdm.h
+++ b/src/bdm.h
@@ -75,7 +75,7 @@ typedef struct _BDMPaintAttribs
double xrot;
- int alpha;
+ float alpha;
int needsPainting;
int updateFont;