Subversion Repositories Kolibri OS

Rev

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

Rev 5485 Rev 7174
Line 447... Line 447...
447
	write_text(11,57,0x00FF20|FONT0, filename, len);
447
	write_text(11,57,0x00FF20|FONT0, filename, len);
448
}
448
}
Line 449... Line 449...
449
 
449
 
450
void draw_window()
450
void draw_window()
451
{
-
 
452
   BeginDraw();
451
{
453
   if (!hidden)
452
   if (!hidden)
-
 
453
   {
454
   {
454
      BeginDraw();
Line 455... Line 455...
455
      DrawWindow(100,100,299,main_wh,main_wc,4,0,0,0); //Asper+   
455
      DrawWindow(100,100,299,main_wh,main_wc,4,0,0,0); //Asper+   
456
 
456
 
457
      make_button(7,24,45,13, 0x10|BT_NORMAL,main_bc);
457
      make_button(7,24,45,13, 0x10|BT_NORMAL,main_bc);
Line 472... Line 472...
472
      write_text(11,27,0xA0FFA0|FONT0,buttons_text,sizeof(buttons_wav)-1); /* uFMOD integration */
472
      write_text(11,27,0xA0FFA0|FONT0,buttons_text,sizeof(buttons_wav)-1); /* uFMOD integration */
Line 473... Line 473...
473
 
473
 
474
      write_text(276,74,main_wc|FONT0,button_PL,sizeof(button_PL)-1); //Asper+ PL button text
474
      write_text(276,74,main_wc|FONT0,button_PL,sizeof(button_PL)-1); //Asper+ PL button text
475
      write_text(275,73,0xA0FFA0|FONT0,button_PL,sizeof(button_PL)-1); //Asper+
475
      write_text(275,73,0xA0FFA0|FONT0,button_PL,sizeof(button_PL)-1); //Asper+
476
      redraw_R_button();
-
 
477
   }
476
      redraw_R_button();
-
 
477
      EndDraw();
478
   EndDraw();
478
   }
Line 479... Line 479...
479
};
479
};
480
 
480
 
481
void draw_progress_bar()
481
void draw_progress_bar()
Line 703... Line 703...
703
   while(1)
703
   while(1)
704
   {  delay(10);
704
   {  delay(10);
705
      switch(status)
705
      switch(status)
706
      {  case ST_TRACK:
706
      {  case ST_TRACK:
707
			StopBuffer(hBuff);
707
			StopBuffer(hBuff);
-
 
708
			if (hidden) ExitInHiddenMode();
708
			if (LoadTrack(++currActive))
709
			if (LoadTrack(++currActive))
709
			{
710
			{
710
				if (LoadFile(full_filename))
711
				if (LoadFile(full_filename))
711
					status = ST_PLAY;
712
					status = ST_PLAY;
712
			}
713
			}
Line 731... Line 732...
731
		  continue;
732
		  continue;
Line 732... Line 733...
732
 
733
 
733
	  case ST_STOP:
734
	  case ST_STOP:
734
		  StopBuffer(hBuff);
735
		  StopBuffer(hBuff);
-
 
736
		  status = ST_DONE;
735
		  status = ST_DONE;
737
		  if (hidden) ExitInHiddenMode();
Line 736... Line 738...
736
		  continue;
738
		  continue;
737
 
739
 
738
	  case ST_EXIT:
740
	  case ST_EXIT:
Line 1104... Line 1106...
1104
 
1106
 
1105
    };
1107
    };
1106
  };
1108
  };
Line -... Line 1109...
-
 
1109
};
-
 
1110
 
-
 
1111
void ExitInHiddenMode()
-
 
1112
{
-
 
1113
	uFMOD_StopSong();
-
 
1114
	StopBuffer(hBuff);
-
 
1115
	DestroyBuffer(hBuff);
-
 
1116
	exit();
1107
};
1117
}
1108
 
1118
 
1109
void delay (int val)
1119
void delay (int val)
1110
{
1120
{
1111
  _asm
1121
  _asm