Changeset 310
- Timestamp:
- 02/28/08 16:02:53 (5 years ago)
- Location:
- trunk/core
- Files:
-
- 2 edited
-
gui_menu.c (modified) (3 diffs)
-
gui_osd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gui_menu.c
r309 r310 92 92 static char sbuf[7]; 93 93 switch (kbd_get_autoclicked_key()) { 94 94 #if !defined (CAMERA_a460) 95 95 case KEY_ERASE: 96 96 if (conf.user_menu_enable == 2) { … … 102 102 } 103 103 break; 104 104 #endif 105 105 case KEY_UP: 106 106 do { … … 314 314 #if defined (CAMERA_a460) 315 315 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; 318 322 } 319 323 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 } 327 336 break; 328 337 -
trunk/core/gui_osd.c
r309 r310 197 197 draw_set_draw_proc(draw_pixel_buffered); 198 198 if ((mode_get()&MODE_MASK) == MODE_REC) { 199 if (conf.show_dof != DOF_DONT_SHOW) gui_osd_calc_dof(); 199 200 if (conf.show_grid_lines) { 200 201 gui_grid_draw_osd(1); 201 202 } 202 if (conf.show_dof ) {203 if (conf.show_dof == DOF_SHOW_IN_DOF) { 203 204 gui_osd_draw_dof(); 204 205 } … … 424 425 } 425 426 } 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 { 435 436 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 } 436 438 } 437 439 } … … 694 696 n=0; 695 697 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){ 697 699 if(kbd_is_key_pressed(KEY_SHOOT_HALF)) 698 700 { 699 701 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 } 702 704 else 703 705 { … … 790 792 if (conf.values_show_luminance) gui_print_osd_misc_string_float("B :", "%d.%02d ", 100, expo.b); 791 793 } 794 792 795 } 793 796 //-------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.