Changeset 1534 for branches/reyalp-flt/core/conf.c
- Timestamp:
- 01/08/12 12:12:13 (17 months ago)
- File:
-
- 1 edited
-
branches/reyalp-flt/core/conf.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/reyalp-flt/core/conf.c
r1516 r1534 7 7 #include "raw.h" 8 8 #include "modules.h" 9 #include "module_load.h" 9 10 #include "gui_draw.h" 10 11 #include "gui_osd.h" … … 38 39 39 40 //------------------------------------------------------------------- 40 Conf conf ;41 Conf conf = { MAKE_API_VERSION(1,0) }; 41 42 42 43 int state_shooting_progress = SHOOTING_PROGRESS_NONE; … … 69 70 static void conf_change_menu_symbol_rbf_file(); 70 71 static void conf_change_alt_mode_button(); 71 static void conf_change_grid_file();72 72 static void conf_change_video_bitrate(); 73 73 static void conf_change_dng_ext(); … … 148 148 /* !!! Do NOT change ID for items defined already! Append a new one at the end! !!! */ 149 149 CONF_INFO( 1, conf.show_osd, CONF_DEF_VALUE, i:1, NULL), 150 CONF_INFO( 2, conf.save_raw, CONF_DEF_VALUE, i:0, NULL),150 CONF_INFO( 2, conf.save_raw, CONF_DEF_VALUE, i:0, conf_change_dng), 151 151 CONF_INFO( 3, conf.script_shoot_delay, CONF_DEF_VALUE, i:0, NULL), 152 152 CONF_INFO( 4, conf.show_histo, CONF_DEF_VALUE, i:0, NULL), … … 216 216 CONF_INFO( 67, conf.alt_prevent_shutdown, CONF_DEF_VALUE, i:ALT_PREVENT_SHUTDOWN_ALT, conf_update_prevent_shutdown), 217 217 CONF_INFO( 68, conf.show_grid_lines, CONF_DEF_VALUE, i:0, NULL), 218 CONF_INFO( 69, conf.grid_lines_file, CONF_CHAR_PTR, ptr:"", conf_change_grid_file),218 CONF_INFO( 69, conf.grid_lines_file, CONF_CHAR_PTR, ptr:"", NULL), 219 219 CONF_INFO( 70, conf.raw_nr, CONF_DEF_VALUE, i:NOISE_REDUCTION_AUTO_CANON, NULL), 220 220 CONF_INFO( 71, conf.grid_force_color, CONF_DEF_VALUE, i:0, NULL), … … 426 426 case 66: conf_change_menu_rbf_file(); break; 427 427 case 67: conf_update_prevent_shutdown(); break; 428 case 69: conf_change_grid_file(); break;429 428 case 101: conf_change_video_bitrate(); break; 430 429 case 183: conf_change_menu_symbol_rbf_file(); break; 431 430 case 194: conf_change_script_file(); break; 431 case 2: 432 432 case 226: conf_change_dng(); break; 433 433 case 235: conf_change_dng_ext(); break; … … 477 477 } 478 478 479 static void conf_change_grid_file() {480 grid_lines_load(conf.grid_lines_file);481 }482 483 479 static void conf_change_video_bitrate() { 484 480 shooting_video_bitrate_change(conf.video_bitrate); … … 487 483 void conf_change_dng(void){ 488 484 #if DNG_SUPPORT 489 if (conf. dng_raw) {485 if (conf.save_raw && conf.dng_raw) { 490 486 if ( !module_dng_load(LIBDNG_OWNED_BY_RAW) ) 491 487 return; … … 668 664 memcpy(conf_info[i].var, buf+offs, size); 669 665 conf_info_func(conf_info[i].id); 670 //if (conf_info[i].func) {671 // conf_info[i].func();672 //}673 666 } 674 667 offs += size;
Note: See TracChangeset
for help on using the changeset viewer.