首先我们来代码吧:
int joseph_creat_bmp_data_show(TTF_Font *font,char *strings,BITMAP_S *osd_bmp_in)
{
#if 0
SDL_Surface *text;
text = (SDL_Surface *)malloc(sizeof(SDL_Surface));
memset(text,0,sizeof(SDL_Surface));
#endif
SDL_Color forecol= { 0x00, 0x00, 0x00, 0x0};
SDL_Surface *text = TTF_RenderUTF8_Solid(font, strings, forecol);
if(text == NULL)
{
printf("%s:[%d] \n",__FUNCTION__,__LINE__);