comparison src/ui/bmi/mmiIcons.c @ 69:77321341946c

first-pass implementation of UI to FCHG connection
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 23 Oct 2020 03:39:22 +0000
parents e9a4b683f697
children 8129ee8ee6c2
comparison
equal deleted inserted replaced
68:e9a4b683f697 69:77321341946c
2389 /* x0045876, 14-Aug-2006 (WR - pointless comparison of unsigned integer with zero) */ 2389 /* x0045876, 14-Aug-2006 (WR - pointless comparison of unsigned integer with zero) */
2390 /* if ( ( batterystatus < 0 ) || ( batterystatus >= iconBattMax ) ) */ 2390 /* if ( ( batterystatus < 0 ) || ( batterystatus >= iconBattMax ) ) */
2391 if (batterystatus >= iconBattMax) 2391 if (batterystatus >= iconBattMax)
2392 return 0; 2392 return 0;
2393 2393
2394 if( (globalMobileMode & (GlobalMobileOn|GlobalCharging)) AND 2394 if (globalBatteryMode == BATT_STATE_CHARGING)
2395 (globalBatteryMode NEQ GlobalBatteryFull) )
2396 { 2395 {
2397 if ( idleIsFocussed() AND battery_charging_animate) 2396 if ( idleIsFocussed() AND battery_charging_animate)
2398 { 2397 {
2399 icn=((MfwHdr *)battstate[ icon_ctr].h)->data; 2398 icn=((MfwHdr *)battstate[ icon_ctr].h)->data;
2400 dspl_BitBlt2(icn->attr->area.px,icn->attr->area.py, 2399 dspl_BitBlt2(icn->attr->area.px,icn->attr->area.py,
2432 *******************************************************************************/ 2431 *******************************************************************************/
2433 //x0pleela 11 Apr, 2006 ER: OMAPS00075178 2432 //x0pleela 11 Apr, 2006 ER: OMAPS00075178
2434 int BattChargeEventTim( MfwEvt e, MfwTim *tc ) 2433 int BattChargeEventTim( MfwEvt e, MfwTim *tc )
2435 { 2434 {
2436 int i; 2435 int i;
2437 if( (globalMobileMode & (GlobalMobileOn|GlobalCharging)) AND 2436 if (globalBatteryMode == BATT_STATE_CHARGING)
2438 (globalBatteryMode NEQ GlobalBatteryFull) )
2439 { 2437 {
2440 if (idleIsFocussed() AND battery_charging_animate) 2438 if (idleIsFocussed() AND battery_charging_animate)
2441 { 2439 {
2442 TRACE_EVENT_P1("Battery charging..timer cb: %d", icon_ctr); 2440 TRACE_EVENT_P1("Battery charging..timer cb: %d", icon_ctr);
2443 timStop(battery_charging_animate); 2441 timStop(battery_charging_animate);