Add 128x128 hicolor as possible icon path

128 / 32 = 4, so it scales cleanly

Fixes showing icon for zynaddsubfx and carla
This commit is contained in:
falkTX 2021-01-04 00:26:18 +00:00 committed by Jonathan Moore Liles
parent 7565be85fb
commit 55de086026
1 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@ get_program_icon ( const char *name )
"/usr/local/share/pixmaps/%s.png", "/usr/local/share/pixmaps/%s.png",
"/usr/local/share/pixmaps/%s.xpm", "/usr/local/share/pixmaps/%s.xpm",
"/usr/share/icons/hicolor/32x32/apps/%s.png", "/usr/share/icons/hicolor/32x32/apps/%s.png",
"/usr/share/icons/hicolor/128x128/apps/%s.png",
"/usr/share/pixmaps/%s.png", "/usr/share/pixmaps/%s.png",
"/usr/share/pixmaps/%s.xpm", "/usr/share/pixmaps/%s.xpm",
}; };
@ -96,7 +97,7 @@ get_program_icon ( const char *name )
asprintf( &icon_p, tries[i], name ); asprintf( &icon_p, tries[i], name );
Fl_Image *img = Fl_Shared_Image::get( icon_p ); Fl_Image *img = Fl_Shared_Image::get( icon_p, 32, 32 );
free( icon_p ); free( icon_p );