Hi,

I have built clutter with gles flavour (on x11/eglx backend) and compiled the 
code below using ARM based compiler available on my board. The code expected to 
show a blank stage (with a gray color) and no actors are placed for simplicity.

But when I run the code below I get a flickering white screen.

The same code hoever works fine when I try it on my host linux machine with 
x11/glx backend.

Can someone shed some light on what is going wrong?

thx

Nirmalya

#include <clutter/clutter.h>
#include <stdlib.h>
#include <X11/Xlib.h>

gboolean handleStageButtonPress(ClutterActor *actor, ClutterEvent *event, 
gpointer data) {
    printf("handleStageButtonPress enter .. quitting\n");
    clutter_main_quit();
}

int main(int argc, char *argv[])
{
  ClutterColor stage_color = { 0x4f, 0x4f, 0x4f, 0xff };
  ClutterColor brown_color = { 0xff, 0x40, 0x40, 0xff };
  ClutterColor blue_color = { 0x00, 0x7f, 0xff, 0xff };
  ClutterColor border_color = { 0x00, 0x00, 0x00, 0xff }; // yellow

  clutter_init (&argc, &argv);

  /* Get the stage and set its size and color: */
  ClutterActor *stage = clutter_stage_new();
  
  clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
  clutter_stage_set_fullscreen(CLUTTER_STAGE(stage), true);
  g_signal_connect(stage, "button-press-event",
    G_CALLBACK(handleStageButtonPress), NULL);
  g_signal_connect (stage, "key-press-event",
   G_CALLBACK(handleStageButtonPress), NULL);

  /* Show the stage: */
  clutter_actor_show (stage);

  /* Start the main loop, so we can respond to events: */
  clutter_main ();

  return EXIT_SUCCESS;
}



      

Reply via email to