Subversion Repositories Kolibri OS

Rev

Rev 7200 | Rev 7219 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7200 Rev 7202
Line 29... Line 29...
29
 
29
 
30
//simple open dialog data
30
//simple open dialog data
31
char default_dir[] = "/rd/1";
31
char default_dir[] = "/rd/1";
Line 32... Line 32...
32
od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" };
32
od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" };
Line 33... Line 33...
33
 
33
 
34
#define ABOUT_MESSAGE "Pixie Player v2.8
34
#define ABOUT_MESSAGE "Pixie Player v2.81
Line 35... Line 35...
35
 
35
 
Line 116... Line 116...
116
	OpenDialog_init stdcall (#o_dialog);
116
	OpenDialog_init stdcall (#o_dialog);
117
}
117
}
Line 118... Line 118...
118
 
118
 
119
void main()
119
void main()
120
{
-
 
121
	int tempstr;
-
 
122
	tempstr = abspath("pixie.ini");
-
 
123
	strcpy(#pixie_ini_path, tempstr);
120
{
124
	list.SetFont(8, 16, 13);
121
	list.SetFont(8, 16, 13);
125
	LoadLibraries();
122
	LoadLibraries();
126
	LoadIniConfig();
123
	LoadIniConfig();
127
	if (work_folder) param=LAST_FOLDER_EXISTS;
124
	if (work_folder) param=LAST_FOLDER_EXISTS;
Line 213... Line 210...
213
	dword text_color, bg_color;
210
	dword text_color, bg_color;
214
	for (i=0; i
211
	for (i=0; i
215
	{
212
	{
216
		strcpy(#temp_filename, files_mas[i + list.first] * 304 + buf + 72);
213
		strcpy(#temp_filename, files_mas[i + list.first] * 304 + buf + 72);
217
		temp_filename[strrchr(#temp_filename, '.')-1] = '\0';
214
		temp_filename[strrchr(#temp_filename, '.')-1] = '\0';
218
		//if (strlen(#temp_filename)>47) strcpy(#temp_filename+44, "..."); 
-
 
Line 219... Line 215...
219
		
215
		
Line 220... Line 216...
220
		yyy = i*list.item_h+list.y;
216
		yyy = i*list.item_h+list.y;
221
		
217
		
Line 508... Line 504...
508
{
504
{
509
	int i;
505
	int i;
510
	if (list.cur_y == current_playing_file_n) EventStopPlaying();
506
	if (list.cur_y == current_playing_file_n) EventStopPlaying();
511
	for (i=list.cur_y; i
507
	for (i=list.cur_y; i
512
	list.count--;
508
	list.count--;
513
	if (i + list.first <= current_playing_file_n) current_playing_file_n--;
509
	if (list.cur_y <= current_playing_file_n) current_playing_file_n--;
514
	list.CheckDoesValuesOkey();
510
	list.CheckDoesValuesOkey();
515
	if (list.count <= list.visible) 
511
	if (list.count <= list.visible) 
516
	{
512
	{
517
		list.h = list.count * list.item_h;
513
		list.h = list.count * list.item_h;
518
		list.visible = list.count;
514
		list.visible = list.count;
519
		list.w -= 1;
-
 
520
		if (window_mode==WINDOW_MODE_NORMAL) MoveSize(OLD, OLD, OLD, skin.h + list.h);
515
		if (window_mode==WINDOW_MODE_NORMAL) MoveSize(OLD, OLD, OLD, skin.h + list.h);
521
	}
516
	}
522
	else DrawPlayList();
517
	else DrawPlayList();
523
}
518
}