Changeset 310


Ignore:
Timestamp:
02/28/08 16:02:53 (5 years ago)
Author:
grand
Message:
  • A460: Added missed part for latest Fingalo's modifications.
Location:
trunk/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_menu.c

    r309 r310  
    9292static char sbuf[7]; 
    9393    switch (kbd_get_autoclicked_key()) { 
    94  
     94#if !defined (CAMERA_a460) 
    9595        case KEY_ERASE: 
    9696                if (conf.user_menu_enable == 2) { 
     
    102102                } 
    103103                break; 
    104                  
     104#endif           
    105105        case KEY_UP: 
    106106            do { 
     
    314314#if defined (CAMERA_a460) 
    315315        case KEY_DISPLAY: 
    316             if (int_incr <= 1000){ 
    317                 int_incr *= 10; 
     316            if (conf.user_menu_enable == 2) { 
     317               if (curr_menu->title != LANG_MENU_USER_MENU) 
     318                  add_user_menu(curr_menu->menu[gui_menu_curr_item],&gui_menu_add_item, 0); 
     319               else 
     320                  add_user_menu(curr_menu->menu[gui_menu_curr_item],&gui_menu_add_item, 1); 
     321               gui_menu_redraw=1; 
    318322            } 
    319323            else { 
    320                int_incr = 1; 
    321             } 
    322             sprintf(sbuf, "±%d",int_incr); 
    323             if (int_incr == 1) { 
    324                draw_string(FONT_WIDTH*2,0,"    ", MAKE_COLOR(COLOR_TRANSPARENT, COLOR_TRANSPARENT)); 
    325             } 
    326             draw_string(0,0,sbuf,MAKE_COLOR(COLOR_SELECTED_BG, COLOR_SELECTED_FG)); 
     324               if (int_incr <= 1000){ 
     325                   int_incr *= 10; 
     326               } 
     327               else { 
     328                  int_incr = 1; 
     329               } 
     330               sprintf(sbuf, "±%d",int_incr); 
     331               if (int_incr == 1) { 
     332                  draw_string(FONT_WIDTH*2,0,"    ", MAKE_COLOR(COLOR_TRANSPARENT, COLOR_TRANSPARENT)); 
     333               } 
     334               draw_string(0,0,sbuf,MAKE_COLOR(COLOR_SELECTED_BG, COLOR_SELECTED_FG)); 
     335            } 
    327336            break; 
    328337 
  • trunk/core/gui_osd.c

    r309 r310  
    197197                draw_set_draw_proc(draw_pixel_buffered); 
    198198                if ((mode_get()&MODE_MASK) == MODE_REC) { 
     199                    if (conf.show_dof != DOF_DONT_SHOW) gui_osd_calc_dof(); 
    199200                    if (conf.show_grid_lines) { 
    200201                        gui_grid_draw_osd(1); 
    201202                    } 
    202                     if (conf.show_dof) { 
     203                    if (conf.show_dof == DOF_SHOW_IN_DOF) { 
    203204                        gui_osd_draw_dof(); 
    204205                    } 
     
    424425        } 
    425426    } 
    426  
    427     if ((histo_magnification) || (conf.show_overexp )) { 
    428         if ((conf.show_overexp ) && kbd_is_key_pressed(KEY_SHOOT_HALF) && (under_exposed || over_exposed))   
    429                    draw_string(conf.histo_pos.x+HISTO_WIDTH-FONT_WIDTH*3, conf.histo_pos.y-FONT_HEIGHT, "EXP", conf.histo_color); 
    430         if (histo_magnification) { 
    431                    sprintf(osd_buf, " %d.%02dx ", histo_magnification/1000, histo_magnification/10%100); 
    432                    draw_string(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, osd_buf, conf.histo_color); 
    433            } 
    434     } else { 
     427    if ((conf.show_overexp ) && kbd_is_key_pressed(KEY_SHOOT_HALF) && (under_exposed || over_exposed)) 
     428      draw_string(conf.histo_pos.x+HISTO_WIDTH-FONT_WIDTH*3, conf.histo_pos.y-FONT_HEIGHT, "EXP", conf.histo_color); 
     429    if (conf.histo_auto_ajust){ 
     430      if (histo_magnification) { 
     431        sprintf(osd_buf, " %d.%02dx ", histo_magnification/1000, histo_magnification/10%100); 
     432        draw_string(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, osd_buf, conf.histo_color); 
     433      } else if (gui_get_mode()==GUI_MODE_OSD){ 
     434        draw_string(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, " 9.99x ", conf.histo_color); 
     435      } else { 
    435436        draw_filled_rect(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, conf.histo_pos.x+8*FONT_WIDTH, conf.histo_pos.y-1, MAKE_COLOR(COLOR_TRANSPARENT, COLOR_TRANSPARENT)); 
     437      } 
    436438    } 
    437439} 
     
    694696    n=0; 
    695697 
    696    if (((conf.tv_override_value) && (conf.tv_override_koef)) || gui_mode==GUI_MODE_OSD){ 
     698    if (((conf.tv_override_value) && (conf.tv_override_koef)) || gui_mode==GUI_MODE_OSD){ 
    697699        if(kbd_is_key_pressed(KEY_SHOOT_HALF))  
    698700                  {  
    699701                  t=(int)(shooting_get_shutter_speed_from_tv96(shooting_get_tv96())*100000);     
    700                   gui_print_osd_state_string_float("TV:", "%d.%05d ", 100000, t); 
    701                   } 
     702        gui_print_osd_state_string_float("TV:", "%d.%05d ", 100000, t); 
     703    } 
    702704        else  
    703705                 { 
     
    790792      if (conf.values_show_luminance) gui_print_osd_misc_string_float("B  :", "%d.%02d ", 100, expo.b); 
    791793    } 
     794     
    792795} 
    793796//------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.