Skip to content

Commit

Permalink
dialog: fade the background with the show/hide animation
Browse files Browse the repository at this point in the history
  • Loading branch information
thos committed Oct 22, 2012
1 parent 62635b7 commit abf7055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mx/mx-dialog.c
Expand Up @@ -466,7 +466,8 @@ mx_dialog_paint (ClutterActor *actor)

clutter_actor_get_size (actor, &width, &height);

cogl_set_source_color4ub (0, 0, 0, 0x7b);
cogl_set_source_color4ub (0, 0, 0,
0x7b * (clutter_actor_get_opacity (actor) / 255.0));
cogl_rectangle (0, 0, width, height);

cogl_translate (width/2, height/2, 0);
Expand Down

0 comments on commit abf7055

Please sign in to comment.