Mercurial > mplayer.hg
changeset 33763:03824cf8728d
Cosmetic: Rename two functions that do MPlayer calls.
Rename guiLoadFont() mplayerLoadFont()
and guiLoadSubtitle() mplayerLoadSubtitle().
author | ib |
---|---|
date | Fri, 08 Jul 2011 21:04:56 +0000 |
parents | e2e075f6065e |
children | 498e3d5f223b |
files | gui/interface.c gui/interface.h gui/ui/gtk/fileselect.c gui/ui/main.c gui/win32/dialogs.c |
diffstat | 5 files changed, 19 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Fri Jul 08 11:59:07 2011 +0000 +++ b/gui/interface.c Fri Jul 08 21:04:56 2011 +0000 @@ -275,7 +275,7 @@ if (subdata) setdup(&guiInfo.Subtitlename, subdata->filename); - guiLoadFont(); + mplayerLoadFont(); initialized = 1; } @@ -616,7 +616,7 @@ stream_dump_type = 6; gtkSubDumpMPSub = gtkSubDumpSrt = 0; - guiLoadFont(); + mplayerLoadFont(); // misc @@ -943,38 +943,38 @@ #ifndef CONFIG_FREETYPE case gtkSetFontFactor: font_factor = fparam; - guiLoadFont(); + mplayerLoadFont(); break; #else case gtkSetFontOutLine: subtitle_font_thickness = (8.0f / 100.0f) * fparam; - guiLoadFont(); + mplayerLoadFont(); break; case gtkSetFontBlur: subtitle_font_radius = (8.0f / 100.0f) * fparam; - guiLoadFont(); + mplayerLoadFont(); break; case gtkSetFontTextScale: text_font_scale_factor = fparam; - guiLoadFont(); + mplayerLoadFont(); break; case gtkSetFontOSDScale: osd_font_scale_factor = fparam; - guiLoadFont(); + mplayerLoadFont(); break; case gtkSetFontEncoding: nfree(subtitle_font_encoding); subtitle_font_encoding = gstrdup((char *)vparam); - guiLoadFont(); + mplayerLoadFont(); break; case gtkSetFontAutoScale: subtitle_autoscale = (int)fparam; - guiLoadFont(); + mplayerLoadFont(); break; #endif @@ -1083,7 +1083,7 @@ } } -void guiLoadFont(void) +void mplayerLoadFont(void) { #ifdef CONFIG_FREETYPE load_font_ft(vo_image_width, vo_image_height, &vo_font, font_name, osd_font_scale_factor); @@ -1130,7 +1130,7 @@ #endif } -void guiLoadSubtitle(char *name) +void mplayerLoadSubtitle(char *name) { if (guiInfo.Playing == 0) { guiInfo.SubtitleChanged = 1; // what is this for? (mw)
--- a/gui/interface.h Fri Jul 08 11:59:07 2011 +0000 +++ b/gui/interface.h Fri Jul 08 21:04:56 2011 +0000 @@ -187,7 +187,7 @@ void gmp_msg(int mod, int lev, const char *format, ...); void mplayer(int cmd, float fparam, void *vparam); void guiExit(enum exit_reason how); -void guiLoadFont(void); -void guiLoadSubtitle(char *name); +void mplayerLoadFont(void); +void mplayerLoadSubtitle(char *name); #endif /* MPLAYER_GUI_INTERFACE_H */
--- a/gui/ui/gtk/fileselect.c Fri Jul 08 11:59:07 2011 +0000 +++ b/gui/ui/gtk/fileselect.c Fri Jul 08 21:04:56 2011 +0000 @@ -488,7 +488,7 @@ break; case fsSubtitleSelector: setddup( &guiInfo.Subtitlename,fsSelectedDirectory,fsSelectedFile ); - guiLoadSubtitle( guiInfo.Subtitlename ); + mplayerLoadSubtitle( guiInfo.Subtitlename ); break; case fsOtherSelector: setddup( &guiInfo.Othername,fsSelectedDirectory,fsSelectedFile ); @@ -498,7 +498,7 @@ break; case fsFontSelector: setddup( &font_name,fsSelectedDirectory,fsSelectedFile ); - guiLoadFont(); + mplayerLoadFont(); if ( Preferences ) gtk_entry_set_text( GTK_ENTRY( prEFontName ),font_name ); break; }
--- a/gui/ui/main.c Fri Jul 08 11:59:07 2011 +0000 +++ b/gui/ui/main.c Fri Jul 08 21:04:56 2011 +0000 @@ -246,7 +246,7 @@ case evLoadSubtitle: gtkShow( evLoadSubtitle,NULL ); break; case evDropSubtitle: nfree( guiInfo.Subtitlename ); - guiLoadSubtitle( NULL ); + mplayerLoadSubtitle( NULL ); break; case evLoadAudioFile: gtkShow( evLoadAudioFile,NULL ); break; case evPrev: uiPrev(); break; @@ -636,6 +636,6 @@ if (subtitles) { nfree(guiInfo.Subtitlename); guiInfo.Subtitlename = subtitles; - guiLoadSubtitle(guiInfo.Subtitlename); + mplayerLoadSubtitle(guiInfo.Subtitlename); } }
--- a/gui/win32/dialogs.c Fri Jul 08 11:59:07 2011 +0000 +++ b/gui/win32/dialogs.c Fri Jul 08 21:04:56 2011 +0000 @@ -45,7 +45,7 @@ guiInterface_t guiInfo; int addurl = 0; -void guiLoadSubtitle(char *name) +void mplayerLoadSubtitle(char *name) { if (!guiInfo.Playing) { @@ -178,7 +178,7 @@ subtitleopen.nMaxFile = MAXFILE; if(GetOpenFileName(&subtitleopen)) - guiLoadSubtitle(subtitlefile); + mplayerLoadSubtitle(subtitlefile); } static void display_loadplaylistwindow(gui_t *gui)