Hi,

On 4/16/12, Sagaert Johan <sagaert.jo...@skynet.be> wrote:
> I am relatively new to directFB and i am struggling to create a scrolling
> text.
>

Yes you are in the right direction.

I maintain a Lua binding for DirectFB [1],
and I've created a small example [2] to show you exactly how a scrolling
window can be done. I used this approach for a Closed Caption STB module.

I apologise for having the example in directfb-lua, rather than plain C.
It's because Lua allows for readable, compact code (and to showoff
the binding a little, the example is just 100 lines :) and it allows
for fast debugging and testing.

I'm sure you'll be able to translate this to C, since it uses the *same* syntax
as DirectFB library (per design).
Also, you can also give it a shot as it is! It should compile right
out of the box.
Feel free to report any issues.

Hope it helps,
Ezequiel.

[1] https://github.com/ezequielgarcia/directfb-lua/
[2] 
https://github.com/ezequielgarcia/directfb-lua/blob/master/examples/scroll.lua
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to