Changeset 1480


Ignore:
Timestamp:
12/12/11 06:14:08 (19 months ago)
Author:
philmoz
Message:

Update for IXUS 310:

  • offset console output to not overlap CHDK touch screen buttons
  • enable CHDK touch screen buttons when script is running, e.g. for use in editor script.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/console.c

    r1394 r1480  
    130130    if (t <= console_last_drawn + CONSOLE_HIDE_TIMEOUT) 
    131131    { 
     132        int y = (console_y + console_max_lines - console_num_lines) * FONT_HEIGHT; 
     133        int x = console_x * FONT_WIDTH + CAM_TS_BUTTON_BORDER; 
     134 
    132135        for(c = 0; c < console_num_lines; ++c) 
    133136        { 
     
    135138            l = strlen(console_buf[i]); 
    136139             
    137             draw_txt_string(console_x, console_y + console_max_lines - console_num_lines + c, 
    138                             console_buf[i], MAKE_COLOR(COLOR_BG, COLOR_FG)); 
    139  
    140             for (; l < console_line_length; ++l) 
    141                 draw_txt_char(console_x + l, console_y + console_max_lines - console_num_lines + c, 
    142                               ' ', MAKE_COLOR(COLOR_BG, COLOR_FG)); 
     140            draw_string(x, y + c * FONT_HEIGHT, console_buf[i], MAKE_COLOR(COLOR_BG, COLOR_FG)); 
     141 
     142            if (l < console_line_length) 
     143                draw_filled_rect(x + l * FONT_WIDTH, y + c * FONT_HEIGHT, 
     144                                 x + console_line_length * FONT_WIDTH, y + c * FONT_HEIGHT + FONT_HEIGHT, 
     145                                 MAKE_COLOR(COLOR_BG, COLOR_BG)); 
    143146        } 
    144147    } 
  • trunk/platform/ixus310_elph500hs/kbd.c

    r1420 r1480  
    346346    { 3, KEY_DISPLAY        , 0x00000008, LB(0,4), 0, "Back",  0,    GUI_MODE_MENU,      GUI_MODE_MENU, MODE_REC|MODE_PLAY }, 
    347347        { 3, KEY_DISPLAY            , 0x00000008, LB(0,4), 0, "Disp",  0,    GUI_MODE_PALETTE,   100,           MODE_REC|MODE_PLAY }, 
    348     { 3, KEY_UP                     , 0x00000010, RB(0,1), 0, "Up",    0,    GUI_MODE_MENU,      100,           MODE_REC|MODE_PLAY }, 
    349         { 3, KEY_LEFT               , 0x00000020, RB(0,2), 0, "Left",  0,    GUI_MODE_MENU,      100,           MODE_REC|MODE_PLAY }, 
    350     { 3, KEY_RIGHT                  , 0x00000040, RB(0,3), 0, "Right", 0,    GUI_MODE_MENU,      100,           MODE_REC|MODE_PLAY }, 
    351         { 3, KEY_DOWN               , 0x00000080, RB(0,4), 0, "Down",  0,    GUI_MODE_MENU,      100,           MODE_REC|MODE_PLAY }, 
     348    { 3, KEY_UP                     , 0x00000010, RB(0,1), 0, "Up",    0,    GUI_MODE_ALT,       100,           MODE_REC|MODE_PLAY }, 
     349        { 3, KEY_LEFT               , 0x00000020, RB(0,2), 0, "Left",  0,    GUI_MODE_ALT,       100,           MODE_REC|MODE_PLAY }, 
     350    { 3, KEY_RIGHT                  , 0x00000040, RB(0,3), 0, "Right", 0,    GUI_MODE_ALT,       100,           MODE_REC|MODE_PLAY }, 
     351        { 3, KEY_DOWN               , 0x00000080, RB(0,4), 0, "Down",  0,    GUI_MODE_ALT,       100,           MODE_REC|MODE_PLAY }, 
    352352 
    353353    { 3, KEY_UP                     , 0x00000010, RB(0,0), 0, "Man",   "Focus",  GUI_MODE_ALT, GUI_MODE_ALT, MODE_REC, &conf.subj_dist_override_koef, 0, &conf.touchscreen_disable_shortcut_controls }, 
Note: See TracChangeset for help on using the changeset viewer.