Sagaert Johan
2012-04-16 22:25:57 UTC
Hi
I am relatively new to directFB and i am struggling to create a scrolling text.
My screen is 320*240 and now i draw a text at a position x40, y60
Because the screen is small and i need to display strings that can not fit the screen size i want to create a scrolling text.
As i understand it i need to create a subsurface and draw my string in that subsurface and apply clipping in some way.
The text should never be drawn in parts outside the window i want.
I am not quite sure if this is the right approach, can someone point me in the right direction or give some hints ?
0.0
_______________________________________________________0,320
| |
| |
| |
| |
| +-------------------------------+ |
| | | |
| | text should appear here | |
| | and i would scroll it by | |
| | changing x,y draw position. | |
| +-------------------------------+ |
| |
_________________________________________________________320,240
Sagaert Johan
Thanks
I am relatively new to directFB and i am struggling to create a scrolling text.
My screen is 320*240 and now i draw a text at a position x40, y60
Because the screen is small and i need to display strings that can not fit the screen size i want to create a scrolling text.
As i understand it i need to create a subsurface and draw my string in that subsurface and apply clipping in some way.
The text should never be drawn in parts outside the window i want.
I am not quite sure if this is the right approach, can someone point me in the right direction or give some hints ?
0.0
_______________________________________________________0,320
| |
| |
| |
| |
| +-------------------------------+ |
| | | |
| | text should appear here | |
| | and i would scroll it by | |
| | changing x,y draw position. | |
| +-------------------------------+ |
| |
_________________________________________________________320,240
Sagaert Johan
Thanks