More work on fonts/skins

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@890 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-06-28 21:50:01 +00:00
parent 48c98b2234
commit d4dcba62a6
11 changed files with 88 additions and 74 deletions

3
init.c
View File

@@ -772,6 +772,7 @@ T_Gui_skin * Load_graphics(const char * skin_file)
// Read the "skin" file
strcpy(filename,Data_directory);
strcat(filename,"skins" PATH_SEPARATOR);
strcat(filename,skin_file);
gui=IMG_Load(filename);
@@ -848,7 +849,7 @@ byte * Load_font(const char * font_name)
}
// Read the file containing the image
sprintf(filename,"%sskins%sfont_%s.png", Data_directory, PATH_SEPARATOR, font_name);
sprintf(filename,"%sskins%s%s", Data_directory, PATH_SEPARATOR, font_name);
image=IMG_Load(filename);
if (!image)