[Q]Overlay & SDL_ttf

I’m making avi player and I met a problem.
I want to show the word “PAUSE” on viewer overlay.
I can show the word by SDL_ttf but I can’t make it disapear.
Give me some advice.
Thanx.

John wrote:

I’m making avi player and I met a problem.
I want to show the word “PAUSE” on viewer overlay.
I can show the word by SDL_ttf but I can’t make it disapear.
Give me some advice.
Thanx.

I’ve seen this on XiGraphics Accellerated X server, I hacked SDL to redraw the key color if the rect used to display the overlay is changed.
basically, the driver isn’t redrawing the key color everytime…so you destroyed the key, and now you are stuck.
There’s no way to get the overlay key color from SDL (I wish there was a way…Sam?)…
I only hacked the X11 version, and I don’t know if it’s worthy of being put into SDL proper.
it works though.
perhaps as an alternative you can destroy and recreate the overlay, then refill it with the video data and display it.
perhaps then it might redraw the key for you.

comments, Sam, and others who may know better?

-LIM-