Help!

 

I cannot render text in any color but black, if I set the color to be
anything else the characters are rendered in the correct color but as
blocks and not as text.

 

It appears that this is worse the higher the RGB values are for the
color.

 

We are running on a Beagle board with clutter-1.0.

 

Thanks

 

Ian

 

    int main(int argc, char *argv[]){

 

    ClutterColor light_blue = {0x80,0x80,0xff,0xff};

 

    ClutterColor black = {0x00,0xff,0xff,0xff};

 

    ClutterActor *stage, *label;

    GError * image_load_error = NULL;    

   

    /* Init clutter */

    clutter_init(&argc,&argv);        

                              

    /* Create the stage */    

    stage = clutter_stage_get_default();

    clutter_stage_set_color(CLUTTER_STAGE(stage),&light_blue);

                                                              

    /* Create a label */                                      

    label = clutter_text_new_full("Sans 12", "Hello World!", &black);

                                                                     

    /* Add the label to the stage and give it a location */          

    clutter_container_add_actor(CLUTTER_CONTAINER(stage),label);     

    clutter_actor_set_position(label,20,20);                         

                                                                     

    /* Show the stage and all actors contained on it */              

    clutter_actor_show_all(stage);                                   

                                                                

    /* Run the main loop for clutter */                         

    clutter_main();                                             

                                                       

    return 0;                                          

}                                                      

~                                      

~             

Reply via email to