Hi Guys
 I would like a help to solve a problem in my application.
 I have a CVM (Java Virtual Machine) portable to a Digital TV platform
 that has a AWT (Abstract Windon Toolkit) implementation using DirectFB
 API. I dont have access to the AWT implementation.
 This implementation has a bug that I hope it is possible to solve
 using a DirectFB API .
 Specifically I want to clean the screen using a JNI called to the DirectFB Api.

 I already done the API;
 In Java Side I have the following method.
 public native  void clearScreen();

 In JNI Side;
   static IDirectFB *dfb = NULL;
   static IDirectFBSurface *primary = NULL;
   DFBSurfaceDescription dsc;
   DirectFBInit (NULL, NULL));
   DirectFBCreate (&dfb);
   dsc.flags = DSDESC_CAPS;
  dsc.caps  = DSCAPS_SYSTEMONLY;
  dfb->CreateSurface( dfb, &dsc, &primary );
  primary->Clear(primary,100,100,100,100);
    primary->Release (primary);
  dfb->Release (dfb);

But nothing happened

Could you help me?

Regards

Alvaro




-
Alvaro Gonçalves

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to