diff audacious/widgets/skin.c @ 1836:a1089ea6f436 trunk

[svn] - implement textboxBitmapFontWidth and textboxBitmapFontHeight for defining the size of a cell in the textbox character grid
author nenolod
date Thu, 05 Oct 2006 20:18:41 -0700
parents 3da01efb3225
children c673508130a8
line wrap: on
line diff
--- a/audacious/widgets/skin.c	Thu Oct 05 19:50:10 2006 -0700
+++ b/audacious/widgets/skin.c	Thu Oct 05 20:18:41 2006 -0700
@@ -1044,6 +1044,24 @@
         g_free(tmp);
     }
 
+    skin->properties.textbox_bitmap_font_width = 5;
+    tmp = read_ini_string(filename, "skin", "textboxBitmapFontWidth");
+
+    if (tmp != NULL)
+    {
+        skin->properties.textbox_bitmap_font_width = atoi(tmp);
+        g_free(tmp);
+    }
+
+    skin->properties.textbox_bitmap_font_height = 6;
+    tmp = read_ini_string(filename, "skin", "textboxBitmapFontHeight");
+
+    if (tmp != NULL)
+    {
+        skin->properties.textbox_bitmap_font_height = atoi(tmp);
+        g_free(tmp);
+    }
+
     if (filename != NULL)
         g_free(filename);
 }