I don't think you should be using this line:

dfb->SetCooperativeLevel(dfb,DFSCL_FULLSCREEN);

if you want to create a window like this. You can either omit this or set 
DFSCL_NORMAL instead.

Chris
 ==================================
Chris Bore
Training Director
BORES Signal Processing
ch...@bores.com
www.bores.com
+44 (0)1483 740138




________________________________
From: Pasha  <khajapasha...@rediffmail.com>
To: directfbusers <directfb-users@directfb.org>
Cc: Chris Bore <chris_b...@yahoo.co.uk>
Sent: Mon, 3 January, 2011 15:20:28
Subject: [directfb-users] how to get the window content on the user screen

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