|
手机通话中的时候,会显示通话时间,这个时候,按数字键,会新建层用于处理输入数字,可这个时候,通话时间停住了。我写了个函数来重画时间,可之前的时间消不掉,重叠在一起了。(PS:模拟器上看不到时间,只有实机上看到,这一点也搞不明白)望各位指教。
DTGetRTCTime(&curr_time);
applib_get_time_difference_ext(
(applib_time_struct*)&curr_time,
(applib_time_struct*)&g_get_in_call_start_time,
(applib_time_struct*)&duration);
//duration setting
set_time_display(0, 0, 0, 0, 0);
main_LCD_measure_time_duration_string(&duration_width, &duration_height);
set_dt_duration(&duration);
set_main_LCD_dt_duration_hide_function(cat403_screens_hide_duration_display);
set_dt_display(DT_VOIP_CALL_SCREEN);
//redraw duration
gdi_layer_get_base_handle(&base_layer);
gdi_layer_push_and_set_active(base_layer);
gdi_layer_set_clip(duration_x, duration_y, duration_width, duration_height);
gui_draw_filled_area(duration_x, duration_y, duration_width, duration_height, (UI_filled_area *)dm_get_current_scr_bg_filler());
set_main_lcd_duration_position(duration_x, duration_y);
gdi_layer_pop_clip();
gdi_layer_pop_and_restore_active();
<img src="attachments/dvbbs/2010-7/201072622573973499.jpg" border="0" onclick="zoom(this)" onload="if(this.width>document.body.clientWidth*0.5) {this.resized=true;this.width=document.body.clientWidth*0.5;this.style.cursor='pointer';} else {this.onclick=null}" alt="" /> |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|