Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3533 → Rev 4583

/programs/media/ac97snd/ac97snd/ac97wav.c
105,6 → 105,7
#define PLI_BUTTON_HEIGHT 13
#define PL_MAX_SHOWN_ITEMS (pl_wh-PLI_BUTTON_HEIGHT-40)/PLI_BUTTON_HEIGHT
#define MAX_TEXT_WIDTH 46
#define MAX_PATH_LEN 1024
 
int currSelected, currActive, currFirstShowed;
unsigned char *pl_buff;
377,7 → 378,7
count++;
if (count-1==index)
{
if (j>MAX_TEXT_WIDTH || ch=='\r' || ch=='\n')
if (j>MAX_PATH_LEN || ch=='\r' || ch=='\n')
{
name[j]='\0';
break;
409,7 → 410,7
 
int ShowPLContent(char *filebuffer)
{
char st[MAX_TEXT_WIDTH+10]="", tmp[MAX_TEXT_WIDTH+1]="";
char st[MAX_PATH_LEN+10]="", tmp[MAX_PATH_LEN+1]="";
unsigned int len=8,i;
DWORD text_color;
 
437,7 → 438,7
write_text(14,74,rc|FONT0,button_R,sizeof(button_R)-1);
}
 
void update_dinamic_content() //Asper +
void update_dynamic_content() //Asper +
{
int len = strlen(filename);
if (len > 47) len = 47;
465,7 → 466,7
 
make_button(7,41,286,11, 0x30|BT_HIDE|BT_NOFRAME,main_wc);
 
update_dinamic_content();
update_dynamic_content();
write_text(8,8,FONT0, header, sizeof(header)-1); /* uFMOD integration */
write_text(12,28,main_wc|FONT0,buttons_text,sizeof(buttons_wav)-1); /* uFMOD integration */
write_text(11,27,0xA0FFA0|FONT0,buttons_text,sizeof(buttons_wav)-1); /* uFMOD integration */
1097,7 → 1098,7
 
case EV_IPC:
*ipc_buff='\0';
update_dinamic_content();
update_dynamic_content();
break;
 
};