Changeset 1117 for trunk


Ignore:
Timestamp:
03/29/11 11:14:17 (2 years ago)
Author:
msl
Message:

+ added 180 degrees orintation in dng.c (perhaps for future cameras)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/dng.c

    r744 r1117  
    336336unsigned short get_orientation_for_exif(short orientation){ 
    337337 switch(orientation){ 
    338   case 90:  return 6; 
    339   case 270: return 8; 
    340   default: return 1; 
     338  case  90: return 6;  // Right  - Top 
     339  case 180: return 3;  // Bottom - Right 
     340  case 270: return 8;  // Left   - Bottom 
     341  case   0:            // Top    - Left 
     342  default : return 1; 
    341343 } 
    342344} 
  • trunk/platform/sx20/kbd.c

    r1031 r1117  
    7171         */ 
    7272 
    73         { 0, KEY_SHOOT_FULL     , 0x00000003 }, 
    74         { 0, KEY_SHOOT_HALF     , 0x00000001 }, 
    75  
    76         { 1, KEY_UP             , 0x00000400 }, 
    77         { 1, KEY_DOWN           , 0x00000800 }, 
    78         { 1, KEY_LEFT           , 0x00002000 }, 
    79         { 1, KEY_RIGHT          , 0x00001000 }, 
    80         { 1, KEY_SET            , 0x00000100 }, 
    81         { 1, KEY_ZOOM_IN        , 0x00008000 }, 
    82         { 1, KEY_ZOOM_OUT       , 0x00040000 }, 
    83         { 1, KEY_MENU           , 0x00004000 }, 
    84         { 1, KEY_DISPLAY        , 0x00000200 }, 
    85         { 1, KEY_PRINT          , 0x00800000 }, 
    86         { 1, KEY_ERASE          , 0x00000080 }, 
     73        { 0, KEY_SHOOT_FULL     , 0x00000003 }, 
     74        { 0, KEY_SHOOT_HALF     , 0x00000001 }, 
     75 
     76        { 1, KEY_UP             , 0x00000400 }, 
     77        { 1, KEY_DOWN           , 0x00000800 }, 
     78        { 1, KEY_LEFT           , 0x00002000 }, 
     79        { 1, KEY_RIGHT          , 0x00001000 }, 
     80        { 1, KEY_SET            , 0x00000100 }, 
     81        { 1, KEY_ZOOM_IN        , 0x00008000 }, 
     82        { 1, KEY_ZOOM_OUT       , 0x00040000 }, 
     83        { 1, KEY_MENU           , 0x00004000 }, 
     84        { 1, KEY_DISPLAY        , 0x00000200 }, 
     85        { 1, KEY_PRINT          , 0x00800000 }, 
     86        { 1, KEY_ERASE          , 0x00000080 }, 
    8787        { 1, KEY_EXPO_CORR      , 0x00000040 }, 
    8888        { 1, KEY_FLASH          , 0x00100000 }, 
     
    297297          physw_status[1] = kbd_new_state[1]; 
    298298          physw_status[2] = kbd_new_state[2]; 
    299           physw_status[2] |= alt_mode_key_mask; 
     299          physw_status[1] |= alt_mode_key_mask; 
    300300          jogdial_stopped=0; 
    301301 
Note: See TracChangeset for help on using the changeset viewer.