diff --git a/programs/cmm/pixie2/get_files_list.h b/programs/cmm/pixie2/get_files_list.h index 19a774c814..3083ae4844 100644 --- a/programs/cmm/pixie2/get_files_list.h +++ b/programs/cmm/pixie2/get_files_list.h @@ -20,10 +20,14 @@ void OpenDirectory(dword folder_path) { strcpy(#temp_filename, j*304 + buf+72); end_pointer = #temp_filename+strlen(#temp_filename); - if (strcmpi(end_pointer-4,".mp3")!=0) continue; - cur = list.count; - files_mas[cur]=j; - list.count++; + if (strcmpi(end_pointer-4,".mp3")==0) + || (strcmpi(end_pointer-4,".wav")==0) + || (strcmpi(end_pointer-3,".xm")==0) + { + cur = list.count; + files_mas[cur]=j; + list.count++; + } } SortByName(0, list.count-1); } diff --git a/programs/cmm/pixie2/pixie.c b/programs/cmm/pixie2/pixie.c index 3cedb372f9..76448c6af3 100644 --- a/programs/cmm/pixie2/pixie.c +++ b/programs/cmm/pixie2/pixie.c @@ -36,8 +36,9 @@ char default_dir[] = "/rd/1"; od_filter filter2 = { 8, "MP3\0\0" }; -#define ABOUT_MESSAGE "'Pixies Player v2.6 -A tiny MP3 folder player. +#define ABOUT_MESSAGE "'Pixies Player v2.61 +A tiny music folder player. +Supports MP3, WAV, XM audio file formats. Controls: Open file: O key @@ -201,7 +202,7 @@ void DrawPlayList() for (i=0; i47) strcpy(#temp_filename+44, "..."); yyy = i*list.item_h+list.y; @@ -264,8 +265,8 @@ void DrawTopPanel() button_y = 46; img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0); if (playback_mode != PLAYBACK_MODE_STOPED) img_draw stdcall(skin.image, 46, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1); - if (repeat) img_draw stdcall(skin.image, Form.width - 108+8, button_y, 20, 20, skin.w+50, WIN_H_SMALL+1); - if (shuffle) img_draw stdcall(skin.image, Form.width - 81+5, button_y, 20, 20, skin.w+75, WIN_H_SMALL+1); + if (repeat) img_draw stdcall(skin.image, Form.width - 101-1, button_y+2, 17, 17, skin.w+43, WIN_H_SMALL+1); + if (shuffle) img_draw stdcall(skin.image, Form.width - 82-1, button_y+2, 17, 17, skin.w+62, WIN_H_SMALL+1); if /*(!list.count) && */ (!work_folder) DrawPixieTitle("Pixie"); else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/')); @@ -279,8 +280,9 @@ void DrawTopPanel() DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE); DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE); //Other buttons - DefineHiddenButton(Form.width - 108,button_y, 23, 23, BUTTON_REPEAT); - DefineHiddenButton(Form.width - 81, button_y, 23, 23, BUTTON_SHUFFLE); + button_y += 3; + DefineHiddenButton(Form.width - 101,button_y, 17, 16, BUTTON_REPEAT); + DefineHiddenButton(Form.width - 82, button_y, 17, 16, BUTTON_SHUFFLE); DefineHiddenButton(Form.width - 54, button_y, 23, 23, BUTTON_OPEN_DIALOG); DefineHiddenButton(Form.width - 27, button_y, 23, 23, BUTTON_SHOW_VOLUME); } diff --git a/programs/cmm/pixie2/skin.png b/programs/cmm/pixie2/skin.png index 31aee02800..b15757acdd 100644 Binary files a/programs/cmm/pixie2/skin.png and b/programs/cmm/pixie2/skin.png differ