add directory argument to Load_Surface()

You can pass NULL if filename is an absolute path
This commit is contained in:
Thomas Bernard
2020-12-05 14:01:16 +01:00
parent bdbf942f18
commit bfbeaf4ca8
4 changed files with 29 additions and 28 deletions

View File

@@ -726,7 +726,7 @@ byte *Render_text_SFont(const char *str, int font_number, int *width, int *heigh
byte * new_brush = NULL;
// Chargement de la fonte
font_surface = Load_surface(Font_name(font_number), NULL);
font_surface = Load_surface(Font_name(font_number), NULL, NULL);
if (!font_surface)
{
Verbose_message("Warning", "Error loading font");