diff gui/interface.c @ 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 1909e4015a3c
children c29fc64a28c4
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)