comparison Gui/interface.c @ 9056:3086611e8213

- add subcp - fix some 10l in gui - fix one 10l bug in subreader
author pontscho
date Tue, 21 Jan 2003 19:12:46 +0000
parents 4a42c0604ce1
children 731e5dc57436
comparison
equal deleted inserted replaced
9055:4a42c0604ce1 9056:3086611e8213
384 if ( name ) 384 if ( name )
385 { 385 {
386 mp_msg( MSGT_GPLAYER,MSGL_INFO,"[gui] Delete Load subtitle: %s\n",name ); 386 mp_msg( MSGT_GPLAYER,MSGL_INFO,"[gui] Delete Load subtitle: %s\n",name );
387 sub_name=gstrdup( name ); 387 sub_name=gstrdup( name );
388 subtitles=sub_read_file( sub_name,guiIntfStruct.FPS ); 388 subtitles=sub_read_file( sub_name,guiIntfStruct.FPS );
389 if ( !subtitles ) mp_msg( MSGT_GPLAYER,MSGL_ERR,MSGTR_CantLoadSub,name );
389 } 390 }
390 } 391 }
391 #endif 392 #endif
392 393
393 static void add_vop( char * str ) 394 static void add_vop( char * str )
860 } 861 }
861 if ( ( !is_added )&&( gstrcmp( next_url->url,url_item->url ) ) ) next_url->next=url_item; 862 if ( ( !is_added )&&( gstrcmp( next_url->url,url_item->url ) ) ) next_url->next=url_item;
862 } else { url_item->next=NULL; URLList=url_item; } 863 } else { url_item->next=NULL; URLList=url_item; }
863 return NULL; 864 return NULL;
864 // --- subtitle 865 // --- subtitle
865 #if defined( USE_OSD ) || defined( USE_SUB )
866 #ifndef HAVE_FREETYPE 866 #ifndef HAVE_FREETYPE
867 case gtkSetFontFactor: 867 case gtkSetFontFactor:
868 font_factor=fparam; 868 font_factor=fparam;
869 guiLoadFont(); 869 guiLoadFont();
870 return NULL; 870 return NULL;
884 case gtkSetFontOSDScale: 884 case gtkSetFontOSDScale:
885 osd_font_scale_factor=fparam; 885 osd_font_scale_factor=fparam;
886 guiLoadFont(); 886 guiLoadFont();
887 return NULL; 887 return NULL;
888 case gtkSetFontEncoding: 888 case gtkSetFontEncoding:
889 if ( subtitle_font_encoding ) free( subtitle_font_encoding ); 889 gfree( (void **)&subtitle_font_encoding );
890 subtitle_font_encoding=gstrdup( (char *)vparam ); 890 subtitle_font_encoding=gstrdup( (char *)vparam );
891 guiLoadFont(); 891 guiLoadFont();
892 return NULL; 892 return NULL;
893 case gtkSetFontAutoScale: 893 case gtkSetFontAutoScale:
894 subtitle_autoscale=(int)fparam; 894 subtitle_autoscale=(int)fparam;
895 guiLoadFont(); 895 guiLoadFont();
896 return NULL; 896 return NULL;
897 #endif 897 #endif
898 #ifdef USE_ICONV
899 case gtkSetSubEncoding:
900 gfree( (void **)&sub_cp );
901 sub_cp=gstrdup( (char *)vparam );
902 break;
898 #endif 903 #endif
899 // --- misc 904 // --- misc
900 case gtkClearStruct: 905 case gtkClearStruct:
901 if ( (unsigned int)vparam & guiFilenames ) 906 if ( (unsigned int)vparam & guiFilenames )
902 { 907 {