Changeset 556


Ignore:
Timestamp:
11/11/08 10:06:05 (5 years ago)
Author:
phyrephox
Message:

*fixed a bug that prevented curves from showing up in latest builds regardless of OPT_CURVES state... i wonder why only one person noticed it so far :D

Location:
trunk/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r552 r556  
    3838#include "motion_detector.h" 
    3939#include "raw.h" 
    40 #ifdef CURVES 
     40#ifdef OPT_CURVES 
    4141        #include "curves.h" 
    4242#endif 
     
    162162#endif 
    163163static void gui_menuproc_swap_patitons(int arg); 
    164 #ifdef CURVES 
     164#ifdef OPT_CURVES 
    165165        static void gui_load_curve_selected(const char *fn); 
    166166        static void gui_load_curve(int arg); 
     
    229229static const char* gui_script_param_set_enum(int change, int arg); 
    230230static const char* gui_override_disable_enum(int change, int arg); 
    231 #ifdef CURVES 
     231#ifdef OPT_CURVES 
    232232        static const char* gui_conf_curve_enum(int change, int arg); 
    233233#endif 
     
    768768static CMenu zebra_submenu = {0x26,LANG_MENU_ZEBRA_TITLE, NULL, zebra_submenu_items }; 
    769769 
    770 #ifdef CURVES 
     770#ifdef OPT_CURVES 
    771771static CMenuItem curve_submenu_items[] = { 
    772772    {0x5f,LANG_MENU_CURVE_ENABLE,        MENUITEM_ENUM,      (int*)gui_conf_curve_enum },     
     
    789789    {0x26,LANG_MENU_MAIN_ZEBRA_PARAM,        MENUITEM_SUBMENU,   (int*)&zebra_submenu }, 
    790790    {0x27,LANG_MENU_MAIN_SCRIPT_PARAM,       MENUITEM_SUBMENU,   (int*)&script_submenu }, 
    791 #ifdef CURVES 
     791#ifdef OPT_CURVES 
    792792    {0x85,LANG_MENU_CURVE_PARAM,             MENUITEM_SUBMENU,   (int*)&curve_submenu }, 
    793793#endif 
     
    872872 
    873873//------------------------------------------------------------------- 
    874 #ifdef CURVES 
     874#ifdef OPT_CURVES 
    875875const char* gui_conf_curve_enum(int change, int arg) { 
    876876    static const char* modes[]={ "None", "Custom", "+1EV", "+2EV", "Auto DR" }; 
     
    18561856    load_bad_pixels_list("A/CHDK/badpixel"); 
    18571857    load_bad_pixels_list("A/CHDK/badpixel.txt"); 
    1858 #ifdef CURVES 
     1858#ifdef OPT_CURVES 
    18591859    curve_load(conf.curve_file); // load curve upon init  
    18601860    drcurve_load("A/CHDK/SYSCURVES.CVF"); // load system L curves 
     
    18671867 
    18681868//------------------------------------------------------------------- 
    1869 #ifdef CURVES 
     1869#ifdef OPT_CURVES 
    18701870static void gui_load_curve_selected(const char *fn) { 
    18711871    if (fn) 
  • trunk/core/gui_osd.c

    r552 r556  
    765765        gui_print_osd_state_string_int("SD:",shooting_get_subject_distance_bracket_value()); 
    766766     } 
    767 #ifdef CURVES 
     767#ifdef OPT_CURVES 
    768768        if (conf.curve_enable || gui_mode==GUI_MODE_OSD) { 
    769769        if (conf.curve_enable==1) gui_print_osd_state_string_chr("CURVES:", "CSTM"); 
  • trunk/core/main.c

    r552 r556  
    9999    mkdir("A/CHDK/BOOKS"); 
    100100    mkdir("A/CHDK/GRIDS"); 
    101 #ifdef CURVES 
     101#ifdef OPT_CURVES 
    102102    mkdir("A/CHDK/CURVES"); 
    103103#endif 
  • trunk/core/raw.c

    r553 r556  
    33#include "stdlib.h" 
    44#include "raw.h" 
    5 #ifdef CURVES 
     5#ifdef OPT_CURVES 
    66        #include "curves.h" 
    77#endif 
     
    4141      close(fd); 
    4242      } 
    43 #ifdef CURVES 
     43#ifdef OPT_CURVES 
    4444     if (conf.curve_enable) curve_apply(); 
    4545#endif 
     
    9898    } 
    9999 
    100 #ifdef CURVES 
     100#ifdef OPT_CURVES 
    101101    if (conf.curve_enable) curve_apply(); 
    102102#endif 
Note: See TracChangeset for help on using the changeset viewer.