Hi All,

Here i am Creating a window from Primary displaylayer and created a surface 
within window and drawn a rectangle on the surface and doing flip() but i am 
unable to see output on the screen.Here is my code

DirectFBCreate (&dfb);
dfb->SetCooperativeLevel(dfb,DFSCL_FULLSCREEN);
dfb->GetDisplayLayer(dfb, DLID_PRIMARY, &displaylayer);
displaylayer->SetCooperativeLevel(displaylayer,DLSCL_ADMINISTRATIVE);
displaylayer->CreateWindow(displaylayer,&windowdsc, &window );
 window->GetSurface(window,&window_surface2);
 window_surface2->SetColor(window_surface2,0x00,0x00,0x00,0xFF);
    
window_surface2->FillRectangle(window_surface2,rect_t.x,rect_t.y, 
rect_t.w,rect_t.h);
window_surface2->SetColor( window_surface2,0xFF, 0x00, 0x00, 0xFF );
window_surface2->DrawRectangle(window_surface2,0,100,500,500);
  window_surface2->Flip(window_surface2,NULL,DSFLIP_BLIT);


Thanks In Advance.

--
Regards
Pasha

  
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to