Hi,
I am facing a problem with text drawing,here i am using the example programme
from online tutorial http://www.directfb.org/docs/DirectFB_Tutorials/text.html,
but it not displaying the text properly.
Here is my code which i had taken from tutorial and modified as below,instead
of text it is painting with given color
DFBCHECK (primary->SetColor (primary, 0x0, 0x0, 0x0, 0xFF));
DFBCHECK (primary->FillRectangle (primary, 0, 0, screen_width,
screen_height));
DFBCHECK (primary->SetColor (primary, 0x80, 0x0, 0x20, 0xFF));
for (i = screen_width; i > -width; i--)
{
DFBCHECK
(primary->DrawString (primary, text, -1, i, screen_height / 2, DSTF_LEFT))
DFBCHECK
(primary->Flip (primary, NULL, DSFLIP_WAITFORSYNC));
}
font->Release (font);
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users