== filebrowser ==
* removed now unused function file_string_width_shortened.
This commit is contained in:
@@ -95,7 +95,6 @@ void file_operator_to_sfile(struct SpaceFile *sfile, struct wmOperator *op);
|
||||
/* filesel.c */
|
||||
float file_shorten_string(char* string, float w, int front);
|
||||
float file_string_width(const char* str);
|
||||
float file_string_width_shortened(const char* str, float width);
|
||||
|
||||
float file_font_pointsize();
|
||||
void file_change_dir(bContext *C, int checkdir);
|
||||
|
||||
@@ -346,16 +346,6 @@ float file_string_width(const char* str)
|
||||
return BLF_width(style->widget.uifont_id, str);
|
||||
}
|
||||
|
||||
/* gives the exact width of the string after being shortened to
|
||||
the maximum width. Assumes shortening from the end of the string. */
|
||||
float file_string_width_shortened(const char* str, float width)
|
||||
{
|
||||
char fname[FILE_MAXFILE];
|
||||
|
||||
BLI_strncpy(fname, str, FILE_MAXFILE);
|
||||
return file_shorten_string(fname, width, 0 );
|
||||
}
|
||||
|
||||
float file_font_pointsize()
|
||||
{
|
||||
float s;
|
||||
|
||||
Reference in New Issue
Block a user