Changeset 852


Ignore:
Timestamp:
12/03/09 06:32:28 (3 years ago)
Author:
reyalp
Message:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/conf.c

    r815 r852  
    4444int state_expos_over; 
    4545int 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; 
    5246 
    5347// reyalp: putting these in conf, since the conf values are lookups for them 
     
    401395    CONF_INFO(237, conf.fast_image_quality,     CONF_DEF_VALUE, i:3, NULL), 
    402396        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), 
    403399    }; 
    404400#define CONF_NUM (sizeof(conf_info)/sizeof(conf_info[0])) 
  • trunk/core/gui.c

    r822 r852  
    378378static CMenuItem debug_submenu_items[] = { 
    379379    {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) }, 
    381381    {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 }, 
    383383    {0x2a,LANG_MENU_DEBUG_MEMORY_BROWSER,    MENUITEM_PROC,          (int*)gui_draw_debug }, 
    384384    {0x2a,LANG_MENU_DEBUG_BENCHMARK,         MENUITEM_PROC,          (int*)gui_draw_bench }, 
     
    19621962            } 
    19631963            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; 
    19671967            } 
    19681968        break; 
     
    25792579void gui_draw_debug_vals_osd() { 
    25802580#ifdef OPT_DEBUGGING 
    2581     if (debug_vals_show) { 
     2581    if (conf.debug_misc_vals_show) { 
    25822582        //        long v=get_file_counter(); 
    25832583        //      sprintf(osd_buf, "1:%03d-%04d  ", (v>>18)&0x3FF, (v>>4)&0x3FFF); 
     
    26242624            for (i=0;i<10;i++){ 
    26252625                r = 0; 
    2626                 p = debug_propcase_page*10+i; 
     2626                p = conf.debug_propcase_page*10+i; 
    26272627                get_property_case(p, &r, 4); 
    26282628                sprintf(sbuf, "%3d: %d              ", p, r); 
     
    26392639            for (i=0;i<10;i++){ 
    26402640                r = 0; 
    2641                 p = debug_propcase_page*10+i; 
     2641                p = conf.debug_propcase_page*10+i; 
    26422642                if (p>=get_flash_params_count()) { 
    26432643                    sprintf(sbuf, "%3d: This parameter does not exists", p); 
  • trunk/core/main.c

    r732 r852  
    5050            write(fd, (void*)0, 0x1900); 
    5151#endif 
     52// TODO actual memory size is larger than 32 MB on many cameras! 
    5253            write(fd, (void*)0x1900, 32*1024*1024-0x1900); 
    5354            close(fd); 
  • trunk/include/conf.h

    r815 r852  
    237237    int debug_shortcut_action;  // 0=none, 1=dump, 2=page display 
    238238    int debug_display;          // 0=none, 1=props, 2=flash param, 3=tasks 
     239    int debug_propcase_page;     // save propcase page 
    239240        int debug_lua_restart_on_error; // 0=no, 1=yes 
     241        int debug_misc_vals_show; // 0=no, 1=yes 
    240242 
    241243    int script_startup;                 // remote autostart 
     
    301303extern int state_expos_over; 
    302304 
    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; 
    308305extern void script_autostart();                         // remote autostart 
    309306extern void conf_save(); 
Note: See TracChangeset for help on using the changeset viewer.