Changeset 1564 for branches/release-1_0


Ignore:
Timestamp:
01/16/12 02:33:38 (16 months ago)
Author:
philmoz
Message:

Fix 'screen_opened' logic for G12, SX30 and SX40 - fixes the 'flashlight' option (sets screen to all white when the LCD is opened and swivelled to face forward).

Location:
branches/release-1_0/platform
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_0/platform/g12/main.c

    r1106 r1564  
    2929 
    3030int screen_opened(void) { 
    31         return !(physw_status[0] & 0x80000000); 
     31        return (physw_status[0] & 0x80000000); 
    3232} 
    3333 
  • branches/release-1_0/platform/sx30/main.c

    r1106 r1564  
    2929 
    3030int screen_opened(void) { 
    31 //      mode |= (physw_status[1] & 0x01000000)?0:MODE_SCREEN_OPENED; 
    32         return !(physw_status[1] & 0x02000000); 
     31        return (physw_status[1] & 0x02000000); 
    3332} 
    3433 
    3534int screen_rotated(void) { 
    36 //      mode |= (physw_status[1] & 0x00080000)?0:MODE_SCREEN_ROTATED; 
    3735        return !(physw_status[1] & 0x00800000); 
    3836} 
  • branches/release-1_0/platform/sx40hs/main.c

    r1414 r1564  
    2929 
    3030int screen_opened(void) { 
    31         return !(physw_status[2] & 0x00000400); 
     31        return (physw_status[2] & 0x00000400); 
    3232} 
    3333 
Note: See TracChangeset for help on using the changeset viewer.