fix Print_filename() when File_name is empty

This commit is contained in:
Thomas Bernard 2019-01-04 22:56:00 +01:00
parent 8cb1c36029
commit 5a4ae06720
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
2 changed files with 4 additions and 2 deletions

View File

@ -265,6 +265,7 @@ void Display_line_on_screen_simple(word x_pos,word y_pos,word width,byte * line)
/* On affiche toute une ligne de pixels. Utilisé pour les textes. */ /* On affiche toute une ligne de pixels. Utilisé pour les textes. */
{ {
byte* dest = Get_Screen_pixel_ptr(x_pos, y_pos); byte* dest = Get_Screen_pixel_ptr(x_pos, y_pos);
if (dest != NULL)
memcpy(dest, line, width); memcpy(dest, line, width);
} }

View File

@ -1114,6 +1114,7 @@ void Print_filename(void)
display_string[string_size] = 0; display_string[string_size] = 0;
} }
// Print // Print
if (string_size > 0)
Print_general_unicode(Screen_width-(string_size<<3)*Menu_factor_X,Menu_status_Y,display_string,MC_Black,MC_Light); Print_general_unicode(Screen_width-(string_size<<3)*Menu_factor_X,Menu_status_Y,display_string,MC_Black,MC_Light);
} }