Quoting Mark Horton ([EMAIL PROTECTED]):
> Here's a code snippet I'm using (mostly taken from df_window.c):
> 
>   DFBWindowDescription desc;
>   desc.flags  = ( DWDESC_POSX | DWDESC_POSY | DWDESC_WIDTH |
>                   DWDESC_HEIGHT | DWDESC_CAPS );
>   desc.posx   = 200;
>   desc.posy   = 200;
>   desc.width  = 400;
>   desc.height = 300;
>   desc.caps   = DWCAPS_ALPHACHANNEL;
> 
>   DFBCHECK(layer->CreateWindow( layer, &desc, &window ) );
>   window->GetSurface( window, &window_surface );
> 
>   window_surface->SetColor( window_surface, 0xFF, 0x20, 0x20, 0x90 );
>   window_surface->DrawRectangle( window_surface, 0, 0,
>                                  desc.width, desc.height );

I guess you want to fill the rectangle instead via FillRectangle().

Everything else is right.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to