Esempio n. 1
0
static PRESULT game_state_callback(POBJECT_HEAD obj, VEVENT event, UINT32 param1, UINT32 param2)
{
	unsigned char ascstr[6];
	PRESULT ret = PROC_PASS;

	switch (event)
	{
		case EVN_PRE_DRAW:
			switch (obj->bID)
			{
			case 31:
				sprintf(ascstr, "%d", level);
				break;
			case 32:
				sprintf(ascstr, "%d", score1);
				break;
			case 33:
				sprintf(ascstr, "%d", score2);
				break;
			}
			ComAscStr2Uni(ascstr, str_value);
			if((get_game_id()==3)&&obj->bID!=31)
			{
				sprintf(ascstr,"%s"," ");
				ComAscStr2Uni(ascstr, str_value); 
			}
			OSD_SetTextFieldStrPoint((PTEXT_FIELD)obj, str_value);
	}

	return ret;
}
Esempio n. 2
0
void win_youtube_opts_ytu_string(UINT8 input)
{
	UINT8 temp[40];
	if(input==YTU_TODAY)
	{
		sprintf(temp, "Today");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTU_THIS_WEEK)
	{
		sprintf(temp, "This Week");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTU_THIS_MONTH)
	{
		sprintf(temp, "This Month");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTU_ALL_TIME)
	{
		sprintf(temp, "All Time");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	
}
Esempio n. 3
0
static PRESULT sys_backup_item_sel_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
	UINT8 bID;
	UINT16 sel, *Uni_str;
	UINT32 block_len;
	char str_buf[20] = {0};
	PRESULT ret = PROC_PASS;

	bID = OSD_GetObjID(pObj);
	switch(event)
	{
		case EVN_REQUEST_STRING:
			sel = param1;
			Uni_str= (UINT16*)param2; // NOTICE: Uni_str size is 32 (#define MAX_STR_LEN 32) in obj_multisel.c
			if(bID == BACKUP_MODE_ID)
			{
				memcpy(str_buf, usb_backup_type_name[sel], STRLEN(usb_backup_type_name[sel]));
				ComAscStr2Uni(str_buf, Uni_str);
			}						
			else
			{
				ComAscStr2Uni("", Uni_str);
			}
			break;
			
		default:
			break;
	}
	return ret;
}
Esempio n. 4
0
static void win_tplist_set_sat_display(void)
{
	TEXT_FIELD* txt;	
	S_NODE s_node;
	SYSTEM_DATA* sys_data;
	sys_data = sys_data_get();

	UINT16 name[3*MAX_SERVICE_NAME_LENGTH];
	name[0] = 0;
	txt = &tplst_sat;
	get_tuner_sat(TUNER_EITHER, cur_tp_sat_idx, &s_node);

	if(sys_data->antenna_connect_type == ANTENNA_CONNECT_DUAL_DIFF)
	{
		if(s_node.tuner1_valid)
			ComAscStr2Uni("[LNB1] ", name);
		else
			ComAscStr2Uni("[LNB2] ", name);
		ComUniStrCat(name, (UINT16 *)s_node.sat_name);
	}
	else
	{
		ComAscStr2Uni("[LNB1] ", name);
		ComUniStrCat(name, (UINT16 *)s_node.sat_name);
	}
	OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)name);
}
Esempio n. 5
0
void win_youtube_opts_yto_string(UINT8 input)
{
	UINT8 temp[40];
	if(input==YTO_RELEVANCE)
	{
		sprintf(temp, "Relevance");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTO_PUBLISHED)
	{
		sprintf(temp, "Published");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTO_VIEW_COUNT)
	{
		sprintf(temp, "View count");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTO_RATING)
	{
		sprintf(temp, "Rating");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	
}
Esempio n. 6
0
static void newcamd_display_info1(BOOL update)
{
	TEXT_CONTENT* tcont;
	char strTemp[50];
	UINT8 idx = g_newcamd_curidx-1;
	UINT32 ip = newcamd_serinfo[idx].ip;

	if(newcamd_serinfo[idx].bActive)
	{
		tcont = &str_info1[0];
		tcont->text.pString = display_strs[31];
		//sprintf(strTemp,"Server %d [%s]",g_newcamd_curidx,newcamd_serinfo[idx].name);
		sprintf(strTemp,"Server %d",g_newcamd_curidx);
		ComAscStr2Uni(strTemp,tcont->text.pString);

		tcont = &str_info1[1];
		tcont->text.pString = display_strs[32];
//		sprintf(strTemp,"Server IP[%d.%d.%d.%d]  Server Port[%d]",\
//			ip&0xff,(ip>>8)&0xff,(ip>>16)&0xff,(ip>>24)&0xff, newcamd_serinfo[idx].port); //pppppppppp

		sprintf(strTemp,"%s",newcamd_serinfo[idx].domain);
		ComAscStr2Uni(strTemp,tcont->text.pString);

		tcont = &str_info1[2];
		tcont->text.pString = display_strs[33];
		sprintf(strTemp,"User Name[******]  User Password[******]");
		ComAscStr2Uni(strTemp,tcont->text.pString);
	}
	else
	{
		tcont = &str_info1[0];
		tcont->text.pString = display_strs[31];
		//sprintf(strTemp,"Server %d [%s] Inactival",g_newcamd_curidx,newcamd_serinfo[idx].name);
		sprintf(strTemp,"Server %d  Inactival",g_newcamd_curidx);
		ComAscStr2Uni(strTemp,tcont->text.pString);

		tcont = &str_info1[1];
		tcont->text.pString=0;

		tcont = &str_info1[2];
		tcont->text.pString=0;
	}

	if(update)
	{
		OSD_DrawObject((POBJECT_HEAD)&newcamd_item_info1, C_UPDATE_ALL);
	}

}
Esempio n. 7
0
void win_pvr_setting_record_ps_set_string(UINT8 input)
{
	UINT8 temp[10];

	sprintf(temp, "%s", (input ? "ON" : "OFF"));
	ComAscStr2Uni(temp, display_strs[7]);
}
Esempio n. 8
0
void win_pvr_setting_rec_num_set_string(UINT8 input)
{
	UINT8 temp[10];

	sprintf(temp, "%d", input);
	ComAscStr2Uni(temp, display_strs[6]);
}
Esempio n. 9
0
void win_pvr_setting_ttx_subt_set_string(BOOL input)
{
	UINT8 temp[10];

	sprintf(temp, "%s", (input ? "YES" : "NO"));
	ComAscStr2Uni(temp, display_strs[5]);
}
Esempio n. 10
0
void win_pvr_setting_jumpstep_set_string(UINT8 input)
{
	UINT8 temp[10];
	
	switch(input)
	{
		case 0:
			sprintf(temp, "30 sec", input);
			break;
		case 1:
			sprintf(temp, "1 min", input);
			break;
		case 2:
			sprintf(temp, "5 min", input);
			break;
		case 3:
			sprintf(temp, "10 min", input);
			break;
		case 4:
			sprintf(temp, "30 min", input);
			break;
		default:
			break;			
	}
	ComAscStr2Uni(temp, display_strs[1]);
}
Esempio n. 11
0
void win_checkdisk_set_string(BOOL input)
{
	UINT8 temp[10];

	sprintf(temp, "%s", (input ? "ON" : "OFF"));
	ComAscStr2Uni(temp, display_strs[0]);
}
Esempio n. 12
0
static void win_pvod_msg_update(UINT8 * str)
{
	UINT32 i,j;
	OSD_RECT rect;

	ComAscStr2Uni(str, display_strs[10+pvod_msg_line%PVOD_MSG_MAX_LINE]);

	for(i=0; i<PVOD_MSG_MAX_LINE; i++)
	{
		if(pvod_msg_line<PVOD_MSG_MAX_LINE)
			j = i%PVOD_MSG_MAX_LINE;
		else
			j = (pvod_msg_line+1+i)%PVOD_MSG_MAX_LINE;
		
		pvod_msg_buf[i] = display_strs[10+j];
	}
	
		//draw msg infos
	for(i=0; i<PVOD_MSG_MAX_LINE; i++)
	{
		rect.uLeft 	= MSG_L;
		rect.uTop  	= MSG_T+(MSG_H+MSG_GAP)*i;
		rect.uWidth = MSG_W;
		rect.uHeight= MSG_H;

		OSD_SetRect2(&pvod_txt_msg.head.frame, &rect);
		OSD_SetTextFieldContent(&pvod_txt_msg, STRING_UNICODE, (UINT32)pvod_msg_buf[i]);
		OSD_DrawObject( (POBJECT_HEAD)&pvod_txt_msg, C_UPDATE_ALL);
	}
	
	pvod_msg_line++;;
}
Esempio n. 13
0
PRESULT comlist_volumelist_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
	PRESULT cbRet = PROC_PASS;
	UINT16 i,wTop;
    OBJLIST* ol;
	UINT16 unistr[50];
	char str[50];

    ol = (OBJLIST*)pObj;
	wTop = OSD_GetObjListTop(ol);

	if (event == EVN_PRE_DRAW)
	{
    	for (i = 0; i< ol->wDep && (i+wTop) < ol->wCount; i++)
    	{            
			storage_index_to_osd_string(i+wTop,str);
			ComAscStr2Uni(str,unistr);
            win_comlist_set_str(i+wTop, NULL, unistr, 0);
    	}
	}
	else if(event == EVN_POST_CHANGE)
		cbRet = PROC_LEAVE;

	return cbRet;
}
Esempio n. 14
0
static void win_disk_info_set_string(UINT8 type, UINT8 input)
{
	UINT8 temp[32];

	switch(type)
	{
		case OPERATE_TYPE_PART_FORMAT:
			win_disk_mode_get_str(input, temp);
			break;
		case OPERATE_TYPE_DVR_SET:
			win_dvr_type_get_str(input, temp);
			break;
		case OPERATE_TYPE_PART_COPY:
			win_partition_get_str(input, temp);
			break;
#ifdef DISK_MANAGER_SUPPORT
		case OPERATE_TYPE_DISK_REMOVE:
			win_removable_disk_get_show_str(input, temp);
			break;
#endif
		default:
			break;
	}
	ComAscStr2Uni(temp, display_strs[1]);
}
Esempio n. 15
0
static void newcamd_redraw_dt(BOOL update)
{
	date_time dt;
	char stringTemp[50];
	
	UINT16 *unistr=NULL;
	UINT16 unistr_dest[50]={0};
	UINT16 uni_string[300]={0};

	get_local_time(&dt);
	memset(unistr_dest,0,sizeof(unistr_dest));
	memset(uni_string,0,sizeof(uni_string));		
	memset(stringTemp,0,sizeof(stringTemp));
	
	unistr = OSD_GetUnicodeString(RS_TIME);        
	sprintf(stringTemp," %02d:%02d",dt.hour,dt.min);
	ComAscStr2Uni(stringTemp,unistr_dest);      
	ComUniStrCopyChar(&uni_string,(UINT16 *)unistr);
	ComUniStrCat(&uni_string,unistr_dest); 

	OSD_SetTextFieldContent(&newcamd_txt_time, STRING_UNICODE,uni_string);

	if(update)
	{
		OSD_DrawObject((POBJECT_HEAD)&newcamd_txt_time,C_DRAW_SIGN_EVN_FLG |C_UPDATE_ALL);
	}
}
Esempio n. 16
0
void win_pvr_setting_scramble_record_mode_set_string(UINT8 input)
{
	UINT8 temp[10];

	sprintf(temp, "%s", (input ? "NO" : "YES"));
	ComAscStr2Uni(temp, display_strs[2]);
}
Esempio n. 17
0
void win_pl_set_password_str(UINT8 index)
{
	UINT8 temp[5];
	if((g_PL_Input_Status==TRUE)&&(g_PL_Input_Bit_Number>0))
	{
		switch(g_PL_Input_Bit_Number)
		{
			case 1:
				sprintf(temp, "*---");
				break;
			case 2:
				sprintf(temp, "**--");
				break;
			case 3:
				sprintf(temp, "***-");
				break;
			case 4:
				sprintf(temp, "****");
				break;
		}
	}
	else
	{
		sprintf(temp, "----");
	}
	ComAscStr2Uni(temp, display_strs[index]);
}
Esempio n. 18
0
void win_com_set_idx_str2(UINT8 * idx, UINT16 * str,UINT8 len)
{
	char tmp[20];
	char fmt[20];
	
	sprintf(tmp, "%d:%d:%d ~ %d:%d:%d", *idx,*(idx+1),*(idx+2),*(idx+3),*(idx+4),*(idx+5));
	ComAscStr2Uni(tmp, str);
}
Esempio n. 19
0
static void win_init_pstring(UINT8 num)
{
	UINT8 i;
	for(i = 0; i < num; i++)
	{
		ComAscStr2Uni("", display_strs[i]);
	}
}
Esempio n. 20
0
void win_com_set_idx_str(UINT16 idx, UINT16 * str, UINT16 len)
{
	char tmp[11];
	char fmt[10];
	sprintf(fmt, "[%%.%dd]", len);
	sprintf(tmp, fmt, idx+1/*base on 1*/);
	ComAscStr2Uni(tmp, str);
}
Esempio n. 21
0
static void win_search_last_tp_ok_failed(UINT32 cnt)
{
	UINT32 i,j,n;
	UINT16 pstr[8];
	OSD_RECT rect;

    if (cnt == 0)
        return;

	if(cnt <= INFOR_TP_CNT)
	{
		n = cnt;
	}
	else
	{
		n = INFOR_TP_CNT;
	}

	if(tp_chsrched)
		ComAscStr2Uni("OK", pstr);
	else
		ComAscStr2Uni("Failed", pstr);

	rect.uLeft 	= INFO_TP_L;
	rect.uTop  	= INFO_TP_T;
	rect.uWidth = INFO_TP_W;
	rect.uHeight= INFO_TXT_H;

	for(i=0;i<n;i++)
	{
		rect.uLeft 	= INFO_TP_L;
		for(j=0;j<7;j++)
		{
			rect.uWidth = tp_info_w_tbl[j] - 2;
			if(j == 6)
				win_srch_draw_info(&rect, NULL,pstr, TP_TXT_SH_IDX);
			rect.uLeft +=  tp_info_w_tbl[j] ;
		}

		rect.uTop += rect.uHeight;
	}

}
Esempio n. 22
0
void win_time_set_time_zone_citys(BOOL update)
{
    POBJECT_HEAD pObj =  (POBJECT_HEAD)&time_item_con2;
    MULTI_TEXT* mtxt = &time_mtxt_zone_city;

    TEXT_CONTENT* txtcont = timezone_mtxt_content;

    UINT8 bAction;
    struct time_zone_name* time_zone;
    INT32 i,hoffset,moffset,str_len;

    txtcont->bTextType = STRING_UNICODE;
    txtcont->text.pString = len_display_str;

    if(OSD_CheckAttr(pObj, C_ATTR_INACTIVE))
        ComAscStr2Uni("", len_display_str);
    else
    {
        sys_data_gmtoffset_2_hmoffset(&hoffset,&moffset);
        time_zone = get_time_zone_name(hoffset, moffset);
        if(time_zone == NULL)
            ComAscStr2Uni("", len_display_str);
        else
        {
            str_len = 0;
            for(i=0; i<time_zone->namecnt; i++)
            {
                if(i!=0)
                {
                    str_len = ComUniStrLen(len_display_str);
                    SetUniStrCharAt(len_display_str,',', str_len);
                    str_len++;
                }
                ComAscStr2Uni(time_zone->city_name[i], &len_display_str[str_len]);
            }
        }
    }

    if(update)
        OSD_DrawObject((POBJECT_HEAD)mtxt, C_UPDATE_ALL);

}
Esempio n. 23
0
void win_youtube_opts_ytq_string(UINT8 input)
{
	UINT8 temp[40];
	if(input==YTQ_MP4_640X360)
	{
		sprintf(temp, "MP4_640X360");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTQ_MP4_1280X720)
	{
		sprintf(temp, "MP4_1280X720");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	else if(input==YTQ_MP4_1920X1080)
	{
		sprintf(temp, "MP4_1920X108");
		ComAscStr2Uni(temp, display_strs[56]);
	}
	
}
Esempio n. 24
0
static void win_otaup_set_swinfo_display(BOOL update)
{
	MULTI_TEXT* mtxt_swinfo;
	TEXT_CONTENT* tcont;
	struct dl_info* info;
	char str[50];

	mtxt_swinfo = &otaupg_mtxt_swinfo;
	info = &ota_dl_info;

	tcont = &otasw_mtxt_content[0];
	tcont->text.pString = display_strs[10];

	tcont = &otasw_mtxt_content[1];
	tcont->text.pString = display_strs[11];

	tcont = &otasw_mtxt_content[2];
	tcont->text.pString = display_strs[12];


	if( (ota_proc_step== OTA_STEP_GET_INFO && ota_proc_ret == PROC_SUCCESS)
		|| ota_proc_step>OTA_STEP_GET_INFO)
	{
		tcont = &otasw_mtxt_content[0];

        sprintf(str,"    H/W ver : %d.%d",
            (info->hw_version>>4) & 0xfff,
            (info->hw_version>>0) & 0xf);	
		ComAscStr2Uni(str,tcont->text.pString);

		tcont = &otasw_mtxt_content[1];
        sprintf(str,"    S/W ver : %d.%d.%d",
            (info->sw_version>>8) & 0xff,
            (info->sw_version>>4) & 0xf,
            (info->sw_version>>0) & 0xf);
		ComAscStr2Uni(str,tcont->text.pString);

		tcont = &otasw_mtxt_content[2];
		sprintf(str,"    S/W size : %d bytes",info->sw_size);
		ComAscStr2Uni(str,tcont->text.pString);
	}
Esempio n. 25
0
static void win_satsrch_set_drawselectsats(void)
{
    struct OSDRect rect;
    UINT16 i,sat_cnt,num;
    UINT16 col,row;
    TEXT_FIELD* txt = &satsrch_multisats_name;
    S_NODE s_node;
	UINT16 top;
	UINT16 str[50];
	UINT16 nStrLen;
    
    if(single_multi_srch_flag == 0) return;
    MEMSET(sat_ids,0,sizeof(sat_ids)/sizeof(sat_ids[0]));
    sat_cnt = num = get_tuner_sat_cnt(TUNER_EITHER_SELECT);//get_selected_sat_num();
    if(num > SELSAT_ROW_CNT *2)
        num = SELSAT_ROW_CNT *2;
	txt->pString = display_strs[0];
	for(i=0;i<sat_cnt;i++)
	{
		get_tuner_sat(TUNER_EITHER_SELECT,i,&s_node);
        sat_ids[i] = s_node.sat_id;
	}
	
    for(i=0;i<SELSAT_ROW_CNT*2;i++)
    {
        row = i/2;

		top = SELSAT_T + row * SELSAT_H+40;
		if(i%2 == 0)
			OSD_SetRect(&txt->head.frame, SELSAT_L0, top, SELSAT_W, SELSAT_H-6);
		else
			OSD_SetRect(&txt->head.frame, SELSAT_L1, top, SELSAT_W, SELSAT_H-6);
        get_tuner_sat(TUNER_EITHER_SELECT,i,&s_node);
		if(i<sat_cnt) 
		{
		    if(s_node.DiSEqC_type !=6)
			    ComUniStrCopyChar((UINT8*)txt->pString, s_node.sat_name);
        }

		else
			ComAscStr2Uni("", txt->pString);
		OSD_DrawObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
    }
	
    if(num == 0)
    {
    	txt->pString = NULL;
    	top = SELSAT_T + 2 * SELSAT_H+40;
		OSD_SetRect(&txt->head.frame, SELSAT_L0 + SELSAT_W/2, top, SELSAT_W, SELSAT_H-6);		
		OSD_SetTextFieldContent(txt, STRING_ID , RS_DISPLAY_NO_SATELLITE/*RS_NO_SATELLITE_SELECT*/); 
		OSD_DrawObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
    }
}
Esempio n. 26
0
void bootota_get_ustr(UINT32 index, UINT16 *ustr)
{
	UINT8 str[20];

	if(ustr == NULL)
		return;
	
	if(index == LNBFREQ_ID-1)
		ComAscStr2Uni(lnbfreq_strs[input_data[index]], ustr);
	else if(index == DISEQC_ID-1)
		ComAscStr2Uni(diseqc_strs[input_data[index]], ustr);
	else if(index == K22_ID-1)
		ComAscStr2Uni(k22_strs[input_data[index]], ustr);
	else if(index ==POL_ID-1)
		ComAscStr2Uni(pol_strs[input_data[index]], ustr);
	else
	{
		sprintf(str,"%d",input_data[index]);
		ComAscStr2Uni(str, ustr);
	}

}
Esempio n. 27
0
void win_pvr_setting_record_ps_set_string(UINT8 input)
{
	UINT8 temp[10];

//	sprintf(temp, "%s", (input ? "ON" : "OFF"));
	if(input==0)
		sprintf(temp, "%s", "TS[CH]");
	else if(input==1)
		sprintf(temp, "%s", "PS");
	else
		sprintf(temp, "%s", "TS[TP]");
//	sprintf(temp, "%s", (input ? "PS" : "TS"));
	ComAscStr2Uni(temp, display_strs[7]);
}
Esempio n. 28
0
static PRESULT disk_operate_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
	PRESULT ret = PROC_PASS;
	char temp[30];
	UINT8 *cur_select = NULL;
	
	switch(event)
	{
	case EVN_PRE_OPEN:
		switch(operate_type)
		{
			case OPERATE_TYPE_PART_FORMAT:
				STRCPY(temp, "Disk Mode");
				cur_select = &mode_select;
				break;
			case OPERATE_TYPE_DVR_SET:
				STRCPY(temp, "DVR Type");
				cur_select = &dvr_select_type;
				break;
			case OPERATE_TYPE_PART_COPY:
				STRCPY(temp, "Dest Partition");
				cur_select = &partition_select;
				break;
#ifdef DISK_MANAGER_SUPPORT
			case OPERATE_TYPE_DISK_REMOVE:
				STRCPY(temp, "Remove");
				cur_select = &disk_select;
				break;
#endif
			default:
				break;
		}
		ComAscStr2Uni(temp, display_strs[0]);
		win_disk_info_set_string(operate_type, *cur_select);
		break;
	case EVN_POST_OPEN:
		break;
	case EVN_PRE_CLOSE:
		/* Make OSD not flickering */
		*((UINT32*)param2) &= ~C_CLOSE_CLRBACK_FLG;			
		break;
	case EVN_POST_CLOSE:
		if (menu_stack_get_top() == NULL)
			OSD_ClearObject((POBJECT_HEAD)&g_win_disk_operate, C_UPDATE_ALL);
		break;			
	}
	
	return ret;
}
Esempio n. 29
0
static void MailDrawNum0()  //对新邮件和邮件总数赋值      ---yuanlin
{
    UINT8 *src;
	UINT8 tmp[6]={0,}; 
	UINT8 num=GYCA_EMAIL_MAX_CNT;//                             ------yuanlin
	UINT16 strLen;
	OSD_RECT rc;
	TEXT_FIELD *txt;
	UINT8 total, newmail;
	
	txt = &mail_new;
	OSD_SetTextFieldStrPoint(txt, len_display_str);

	src = OSD_GetUnicodeString(RS_CTI_NEW_MAIL);
	ComUniStrCopyChar((UINT8*)len_display_str, src);
	strLen = ComUniStrLen(len_display_str);
	sprintf(tmp, " %d",email_count_unread );
	ComAscStr2Uni(tmp, &len_display_str[strLen]);
	OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)len_display_str);
	OSD_DrawObject((POBJECT_HEAD)txt, C_UPDATE_ALL);
	OSD_SetTextFieldStrPoint(txt, NULL);

	txt = &mail_total;
	OSD_SetTextFieldStrPoint(txt, len_display_str);
	
	MEMSET(len_display_str, 0, sizeof(len_display_str));
	MEMSET(tmp, 0, sizeof(tmp));
	src = OSD_GetUnicodeString(RS_RESIDUAL_SPACE);
	ComUniStrCopyChar((UINT8*)len_display_str, src);
	strLen = ComUniStrLen(len_display_str);
	sprintf(tmp, " %d",num-email_count);
	ComAscStr2Uni(tmp, &len_display_str[strLen]);
	OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)len_display_str);
	OSD_DrawObject((POBJECT_HEAD)txt, C_UPDATE_ALL);
	OSD_SetTextFieldStrPoint(txt, NULL);
}
Esempio n. 30
0
static void dvbc_quickscan_set_def_val(void)
{
	INT8 rule[20];
	UINT32 freq, symbol, constellation;
	P_NODE p_node;
	T_NODE t_node;
	UINT32 prog_num;
	UINT16 cur_channel;

	/* FREQ */
	wincom_i_to_mbs_with_dot(display_strs[20],
	                         i_qs_freq, DVBC_QUICKSCAN_EDIT_LEN - 1/*without dot*/, 0x02/*xxx.xx*/);
	ComAscStr2Uni("MHz", display_strs[30]);
	/* SYMBOL */
	wincom_i_to_mbs(display_strs[21],
	                i_qs_symbol, DVBC_QUICKSCAN_EDIT_LEN - 1);
	ComAscStr2Uni("KBaud", display_strs[31]);

	OSD_SetMultiselSel(&txt_mf_item_value3, i_qs_mode - QAM16);
	#if(defined(MIS_AD) || defined(MIS_AD_NEW))
	wincom_i_to_mbs(display_strs[22],
	                i_qs_areacode, 2);
	#endif
}