Changeset 1790 for trunk


Ignore:
Timestamp:
04/04/12 23:10:35 (14 months ago)
Author:
philmoz
Message:

Fix for SX220 movie record crash from funnel.
http://chdk.setepontos.com/index.php?topic=650.msg83729#msg83729

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_draw.c

    r1762 r1790  
    1313//------------------------------------------------------------------- 
    1414static void draw_pixel_std(unsigned int offset, color cl) { 
    15     frame_buffer[0][offset] = frame_buffer[1][offset] = cl & 0xff; 
     15#ifdef DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY         
     16        extern int active_bitmap_buffer; 
     17        frame_buffer[active_bitmap_buffer][offset] = cl & 0xff; 
     18#else 
     19        frame_buffer[0][offset] = frame_buffer[1][offset] = cl & 0xff; 
     20#endif 
    1621} 
    1722 
  • trunk/include/camera.h

    r1754 r1790  
    195195    #define CAMERA_MAX_DIST         65535       // Define max distance that can be set in _MoveFocusLensToDistance (allow override for superzooms - SX30/SX40) 
    196196 
     197        #undef  DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY       // Draw pixels on active bitmap buffer only. Requires active_bitmap_buffer location in stubs_min.S or stubs_entry.S. 
     198         
    197199//---------------------------------------------------------- 
    198200// Overridden values for each camera 
  • trunk/platform/sx220hs/kbd.c

    r1786 r1790  
    7070    { 0, KEY_MENU            , 0x00040000 }, 
    7171    { 0, KEY_VIDEO           , 0x00080000 }, 
    72     { 0, KEY_RIGHT_SOFT      , 0x00002000 }, 
    73     { 0, KEY_UP_SOFT         , 0x00000400 }, 
    74     { 0, KEY_DOWN_SOFT       , 0x00008000 }, 
     72 //   { 0, KEY_RIGHT_SOFT      , 0x00002000 },  //soft keys commented out but still counted in the keymasks, seems to disable them like we want. 
     73 //   { 0, KEY_UP_SOFT         , 0x00000400 },  //if enabled can cause unintentional button presses in alt menu when rotating the jogdial really fast. 
     74 //   { 0, KEY_DOWN_SOFT       , 0x00008000 }, 
    7575 
    7676    { 1, KEY_PRINT           , 0x00200000 }, // playback = alt button 
    7777    { 1, KEY_PLAYBACK        , 0x00200000 }, 
    7878 
    79     { 2, KEY_LEFT_SOFT       , 0x00000080 }, 
     79 //   { 2, KEY_LEFT_SOFT       , 0x00000080 }, 
    8080    { 2, KEY_LEFT            , 0x00000100 }, 
    8181    { 2, KEY_SHOOT_FULL      , 0x00002002 }, 
  • trunk/platform/sx220hs/platform_camera.h

    r1698 r1790  
    110110        #define REMOTE_SYNC_STATUS_LED  0xC0220130              // specifies an LED that turns on while camera waits for USB remote to sync 
    111111         
     112        #define DRAW_ON_ACTIVE_BITMAP_BUFFER_ONLY       1 
    112113//---------------------------------------------------------- 
  • trunk/platform/sx220hs/sub/100a/stubs_min.S

    r1641 r1790  
    22 
    33DEF(recreview_hold,                     0x93D4 + 0xF0)  // FF1B6640 
    4 DEF(enabled_refresh_physical_screen,    0x53C4 + 0x14)  //changed to fix error when displaying menu, was 0x20 FF0A99C0  
    54DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
  • trunk/platform/sx220hs/sub/101a/stubs_min.S

    r1641 r1790  
    33DEF(zoom_status,                        0xF5A4)         // ff31c404 
    44DEF(recreview_hold,                     0x93D4 + 0xF0)  // FF1B6640 
    5 DEF(enabled_refresh_physical_screen,    0x53C4 + 0x14)  //changed to fix error when displaying menu, was 0x20 FF0A99C0  
    65DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
  • trunk/platform/sx220hs/sub/101b/stubs_min.S

    r1641 r1790  
    44DEF(zoom_status,                        0xF5A4)         // ff31c404 
    55DEF(recreview_hold,                     0x93D4 + 0xF0)  // FF1B6640 
    6 DEF(enabled_refresh_physical_screen,    0x53C4 + 0x14)  //changed to fix error when displaying menu, was 0x20 FF0A99C0  
    76DEF(led_table,                          0x258C + 0x04)  // FF0557C4 
Note: See TracChangeset for help on using the changeset viewer.