Changeset 852
- Timestamp:
- 12/03/09 06:32:28 (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
core/conf.c (modified) (2 diffs)
-
core/gui.c (modified) (5 diffs)
-
core/main.c (modified) (1 diff)
-
include/conf.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/conf.c
r815 r852 44 44 int state_expos_over; 45 45 int auto_started; 46 47 int state_debug1;48 int debug_propcase_show;49 int debug_propcase_page;50 int debug_vals_show;51 int debug_pardata_show;52 46 53 47 // reyalp: putting these in conf, since the conf values are lookups for them … … 401 395 CONF_INFO(237, conf.fast_image_quality, CONF_DEF_VALUE, i:3, NULL), 402 396 CONF_INFO(238, conf.debug_lua_restart_on_error, CONF_DEF_VALUE, i:0, NULL), 397 CONF_INFO(239, conf.debug_propcase_page, CONF_DEF_VALUE, i:0, NULL), 398 CONF_INFO(240, conf.debug_misc_vals_show, CONF_DEF_VALUE, i:0, NULL), 403 399 }; 404 400 #define CONF_NUM (sizeof(conf_info)/sizeof(conf_info[0])) -
trunk/core/gui.c
r822 r852 378 378 static CMenuItem debug_submenu_items[] = { 379 379 {0x5c,LANG_MENU_DEBUG_DISPLAY, MENUITEM_ENUM, (int*)gui_debug_display_enum }, 380 {0x2a,LANG_MENU_DEBUG_PROPCASE_PAGE, MENUITEM_INT|MENUITEM_F_UNSIGNED|MENUITEM_F_MINMAX, & debug_propcase_page, MENU_MINMAX(0, 128) },380 {0x2a,LANG_MENU_DEBUG_PROPCASE_PAGE, MENUITEM_INT|MENUITEM_F_UNSIGNED|MENUITEM_F_MINMAX, &conf.debug_propcase_page, MENU_MINMAX(0, 128) }, 381 381 {0x2a,LANG_MENU_DEBUG_TASKLIST_START, MENUITEM_INT|MENUITEM_F_UNSIGNED|MENUITEM_F_MINMAX, &debug_tasklist_start, MENU_MINMAX(0, 63) }, 382 {0x5c,LANG_MENU_DEBUG_SHOW_MISC_VALS, MENUITEM_BOOL, & debug_vals_show },382 {0x5c,LANG_MENU_DEBUG_SHOW_MISC_VALS, MENUITEM_BOOL, &conf.debug_misc_vals_show }, 383 383 {0x2a,LANG_MENU_DEBUG_MEMORY_BROWSER, MENUITEM_PROC, (int*)gui_draw_debug }, 384 384 {0x2a,LANG_MENU_DEBUG_BENCHMARK, MENUITEM_PROC, (int*)gui_draw_bench }, … … 1962 1962 } 1963 1963 else if (conf.debug_display == DEBUG_DISPLAY_PROPS || conf.debug_display == DEBUG_DISPLAY_PARAMS) { 1964 debug_propcase_page += debug_display_direction*1;1965 if( debug_propcase_page > 128 ||debug_propcase_page < 0)1966 debug_propcase_page = 0;1964 conf.debug_propcase_page += debug_display_direction*1; 1965 if(conf.debug_propcase_page > 128 || conf.debug_propcase_page < 0) 1966 conf.debug_propcase_page = 0; 1967 1967 } 1968 1968 break; … … 2579 2579 void gui_draw_debug_vals_osd() { 2580 2580 #ifdef OPT_DEBUGGING 2581 if ( debug_vals_show) {2581 if (conf.debug_misc_vals_show) { 2582 2582 // long v=get_file_counter(); 2583 2583 // sprintf(osd_buf, "1:%03d-%04d ", (v>>18)&0x3FF, (v>>4)&0x3FFF); … … 2624 2624 for (i=0;i<10;i++){ 2625 2625 r = 0; 2626 p = debug_propcase_page*10+i;2626 p = conf.debug_propcase_page*10+i; 2627 2627 get_property_case(p, &r, 4); 2628 2628 sprintf(sbuf, "%3d: %d ", p, r); … … 2639 2639 for (i=0;i<10;i++){ 2640 2640 r = 0; 2641 p = debug_propcase_page*10+i;2641 p = conf.debug_propcase_page*10+i; 2642 2642 if (p>=get_flash_params_count()) { 2643 2643 sprintf(sbuf, "%3d: This parameter does not exists", p); -
trunk/core/main.c
r732 r852 50 50 write(fd, (void*)0, 0x1900); 51 51 #endif 52 // TODO actual memory size is larger than 32 MB on many cameras! 52 53 write(fd, (void*)0x1900, 32*1024*1024-0x1900); 53 54 close(fd); -
trunk/include/conf.h
r815 r852 237 237 int debug_shortcut_action; // 0=none, 1=dump, 2=page display 238 238 int debug_display; // 0=none, 1=props, 2=flash param, 3=tasks 239 int debug_propcase_page; // save propcase page 239 240 int debug_lua_restart_on_error; // 0=no, 1=yes 241 int debug_misc_vals_show; // 0=no, 1=yes 240 242 241 243 int script_startup; // remote autostart … … 301 303 extern int state_expos_over; 302 304 303 extern int state_debug1;304 extern int debug_propcase_show;305 extern int debug_propcase_page;306 extern int debug_vals_show;307 extern int debug_pardata_show;308 305 extern void script_autostart(); // remote autostart 309 306 extern void conf_save();
Note: See TracChangeset
for help on using the changeset viewer.