Bryan Bui-Tuong wrote:
> //And then I attempt to draw a figure:
> Function2{
> static IDirectFBSurface *batt = NULL;
> static LiteBox *batt_stat = NULL;
> static DFBRectangle batt_rect[2];
>
> batt_rect[0].x = 188; batt_rect[0].y = 7; batt_rect[0].w = 47;
> batt_rect[0].h = 14;
> batt_rect[1].x = 235; batt_rect[1].y = 9; batt_rect[1].w = 3;
> batt_rect[1].h = 10;
>
> lite_new_box( &batt_stat, LITE_BOX(window), 188, 7, 50, 14 );
> lite_init_box( batt_stat );
>
> batt = batt_stat->surface;
>
> batt->SetColor( batt, green.r, green.g, green.b, green.a ); //green
> batt->FillRectangles( batt, batt_rect, 2 );
> batt->Flip( batt, NULL, 0 );
> }
I'm quite sure this will get overdrawn by the next ordinary redraw handling
"round".
Please use the Draw() callback as it's supposed to be.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users