Untested - in gui.c, function gui_decimal_enum(), change the max value from 100,000 to 999,999.
Index: core/gui.c===================================================================--- core/gui.c (revision 3539)+++ core/gui.c (working copy)@@ -1423,7 +1423,7 @@ *v += change; if (*v < 0) *v = 0;- if (*v > 100000) *v = 100000;+ if (*v > 500000) *v = 500000; sprintf(buf, "%01d.%05d", (int)(*v / 100000), (int)(*v % 100000));Index: core/gui_menu.c===================================================================--- core/gui_menu.c (revision 3539)+++ core/gui_menu.c (working copy)@@ -106,7 +106,7 @@ // Calculate max allowed value for int_incr // Default is 10000 for positive int values, 1000 for negative values or 1 otherwise- int max = ((item_type == MENUITEM_INT) || (item_flags & MENUITEM_DECIMAL)) ? ((item_val<0)?1000:10000) : 1;+ int max = ((item_type == MENUITEM_INT) || (item_flags & MENUITEM_DECIMAL)) ? ((item_val<0)?1000:100000) : 1; // If an int value has a defined MIN / MAX range then adjust int_incr max to fit the range int vmax = 0;~
Well, it works except for one bit of ugliness. When you use the zoom key to change digits, it stops at the decimal point. Using the left & right keys at that point increment the value to the left of the decimal point. It works but it's not exactly 100% intuitive, and cleaning that up will be a bit of coding work. Fortunately, I believe that this input type is only used for Tv short values (based on a bit of grepping).
int max = ((item_type == MENUITEM_INT) || (item_flags & MENUITEM_DECIMAL)) ? ((item_val < 0)?1000:10000) : 1;
int max = (item_flags & MENUITEM_DECIMAL) ? 100000 : (item_type == MENUITEM_INT) ? ((item_val < 0)?1000:10000) : 1;
Something like this might work.Code: [Select] int max = (item_flags & MENUITEM_DECIMAL) ? 100000 : (item_type == MENUITEM_INT) ? ((item_val < 0)?1000:10000) : 1;
+ int max = ((item_type == MENUITEM_INT) || (item_flags & MENUITEM_DECIMAL)) ? ((item_val<0)?1000:100000) : 1;
I've added this in revision 3540 (trunk only). If there are no issues I'll add it to the release_1.2 branch as well.
Started by DraGoNsLaYer786 « 1 2 » General Help and Assistance on using CHDK stable releases
Started by mikeage General Help and Assistance on using CHDK stable releases
Started by sf_photo General Help and Assistance on using CHDK stable releases
Started by powerarmor General Help and Assistance on using CHDK stable releases
Started by janis General Help and Assistance on using CHDK stable releases