* Brush factory: Drive entries in fileselector don't have an icon on some platforms

* File selector: remove BeOS quirk for getting home directory (the OS was fixed), and try to guess the drive type for UNIX OSes (untested)

Fixes #492.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2015 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2012-09-28 18:19:31 +00:00
parent 26613ec440
commit 76222af12a
2 changed files with 18 additions and 8 deletions

View File

@@ -1541,8 +1541,11 @@ void Draw_script_name(word x, word y, word index, byte highlighted)
fg=(highlighted)?MC_Light:MC_Dark;
bg=(highlighted)?MC_Dark:MC_Black;
Window_display_icon_sprite(x,y,current_item->Icon);
x+=8;
if (current_item->Icon != ICON_NONE)
{
Window_display_icon_sprite(x,y,current_item->Icon);
x+=8;
}
}
Print_in_window(x, y, current_item->Short_name, fg,bg);