- Timestamp:
- 04/18/09 05:15:29 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
core/gui.c (modified) (4 diffs)
-
makefile.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gui.c
r736 r738 2301 2301 if (conf.debug_shortcut_action > 0) { 2302 2302 #ifdef OPT_DEBUGGING 2303 gui_debug_shortcut();2303 gui_debug_shortcut(); 2304 2304 #endif 2305 2305 } … … 2549 2549 } 2550 2550 2551 void gui_draw_debug_vals_osd() { 2552 #ifdef OPT_DEBUGGING 2553 if (debug_vals_show) { 2554 // long v=get_file_counter(); 2555 // sprintf(osd_buf, "1:%03d-%04d ", (v>>18)&0x3FF, (v>>4)&0x3FFF); 2556 // sprintf(osd_buf, "1:%d, %08X ", xxxx, eeee); 2557 /* 2558 extern long physw_status[3]; 2559 sprintf(osd_buf, "1:%8x ", physw_status[0]); 2560 draw_txt_string(28, 10, osd_buf, conf.osd_color); 2561 2562 sprintf(osd_buf, "2:%8x ", physw_status[1]); 2563 draw_txt_string(28, 11, osd_buf, conf.osd_color); 2564 2565 sprintf(osd_buf, "3:%8x ", physw_status[2]); 2566 draw_txt_string(28, 12, osd_buf, conf.osd_color); 2567 2568 // sprintf(osd_buf, "4:%8x ", vid_get_viewport_fb_d()); 2569 */ 2570 sprintf(osd_buf, "u:%8x ", get_usb_power(1)); 2571 draw_txt_string(28, 9, osd_buf, conf.osd_color); 2572 2573 sprintf(osd_buf, "1:%8x ", (void*) (*(int*)conf.mem_view_addr_init)); 2574 draw_txt_string(28, 10, osd_buf, conf.osd_color); 2575 2576 extern volatile long focus_busy; 2577 sprintf(osd_buf, "f:%8x ", focus_busy); 2578 draw_txt_string(28, 11, osd_buf, conf.osd_color); 2579 2580 extern volatile long zoom_busy; 2581 sprintf(osd_buf, "z:%8x ", zoom_busy); 2582 draw_txt_string(28, 12, osd_buf, conf.osd_color); 2583 2584 // some cameras missing zoom_status 2585 #if 0 2586 sprintf(osd_buf, "t:%8x ", zoom_status); 2587 draw_txt_string(28, 13, osd_buf, conf.osd_color); 2588 #endif 2589 2590 } 2591 { 2592 static char sbuf[100]; 2593 int r,i, p, len; 2594 if (conf.debug_display == DEBUG_DISPLAY_PROPS){ 2595 2596 for (i=0;i<10;i++){ 2597 r = 0; 2598 p = debug_propcase_page*10+i; 2599 get_property_case(p, &r, 4); 2600 sprintf(sbuf, "%3d: %d ", p, r); 2601 sbuf[20]=0; 2602 draw_string(64,16+16*i,sbuf, conf.osd_color); 2603 } 2604 } 2605 2606 if (conf.debug_display == DEBUG_DISPLAY_PARAMS){ 2607 extern long* FlashParamsTable[]; 2608 char s[30]; 2609 int count; 2610 2611 for (i=0;i<10;i++){ 2612 r = 0; 2613 p = debug_propcase_page*10+i; 2614 if (p>=get_flash_params_count()) { 2615 sprintf(sbuf, "%3d: This parameter does not exists", p); 2616 } else { 2617 len=FlashParamsTable[p][1]>>16; 2618 if ((len==1)||(len==2)||(len==4)){ 2619 get_parameter_data(p, &r, len); 2620 sprintf(sbuf, "%3d: %30d :%2d ", p, r,len); 2621 } 2622 else { 2623 if (len>=sizeof(s)) count=sizeof(s)-1; else count=len; 2624 get_parameter_data(p, &s, count); 2625 s[count]=0; 2626 sprintf(sbuf, "%3d: %30s :%2d ", p, s,len); 2627 } 2628 } 2629 draw_string(16,16+16*i,sbuf, conf.osd_color); 2630 } 2631 } 2632 } 2633 2634 if(conf.debug_display == DEBUG_DISPLAY_TASKS) { 2635 gui_debug_draw_tasklist(); 2636 } 2637 #endif 2638 } 2551 2639 //------------------------------------------------------------------- 2552 2640 //extern int xxxx, eeee; … … 2563 2651 int need_restore = 0; 2564 2652 m = mode_get(); 2653 2654 // uncomment if you want debug values always on top 2655 // gui_draw_debug_vals_osd(); 2565 2656 2566 2657 #if CAM_SWIVEL_SCREEN … … 2719 2810 #endif 2720 2811 2721 #ifdef OPT_DEBUGGING 2722 if (debug_vals_show) { 2723 // long v=get_file_counter(); 2724 // sprintf(osd_buf, "1:%03d-%04d ", (v>>18)&0x3FF, (v>>4)&0x3FFF); 2725 // sprintf(osd_buf, "1:%d, %08X ", xxxx, eeee); 2726 /* 2727 extern long physw_status[3]; 2728 sprintf(osd_buf, "1:%8x ", physw_status[0]); 2729 draw_txt_string(28, 10, osd_buf, conf.osd_color); 2730 2731 sprintf(osd_buf, "2:%8x ", physw_status[1]); 2732 draw_txt_string(28, 11, osd_buf, conf.osd_color); 2733 2734 sprintf(osd_buf, "3:%8x ", physw_status[2]); 2735 draw_txt_string(28, 12, osd_buf, conf.osd_color); 2736 2737 // sprintf(osd_buf, "4:%8x ", vid_get_viewport_fb_d()); 2738 */ 2739 sprintf(osd_buf, "u:%8x ", get_usb_power(1)); 2740 draw_txt_string(28, 9, osd_buf, conf.osd_color); 2741 2742 sprintf(osd_buf, "1:%8x ", (void*) (*(int*)conf.mem_view_addr_init)); 2743 draw_txt_string(28, 10, osd_buf, conf.osd_color); 2744 2745 extern volatile long focus_busy; 2746 sprintf(osd_buf, "f:%8x ", focus_busy); 2747 draw_txt_string(28, 11, osd_buf, conf.osd_color); 2748 2749 extern volatile long zoom_busy; 2750 sprintf(osd_buf, "z:%8x ", zoom_busy); 2751 draw_txt_string(28, 12, osd_buf, conf.osd_color); 2752 2753 // some cameras missing zoom_status 2754 #if 0 2755 sprintf(osd_buf, "t:%8x ", zoom_status); 2756 draw_txt_string(28, 13, osd_buf, conf.osd_color); 2757 #endif 2758 2759 } 2760 2761 2762 { 2763 static char sbuf[100]; 2764 int r,i, p, len; 2765 if (conf.debug_display == DEBUG_DISPLAY_PROPS){ 2766 2767 for (i=0;i<10;i++){ 2768 r = 0; 2769 p = debug_propcase_page*10+i; 2770 get_property_case(p, &r, 4); 2771 sprintf(sbuf, "%3d: %d ", p, r);sbuf[20]=0; 2772 draw_string(64,16+16*i,sbuf, conf.osd_color); 2773 } 2774 } 2775 2776 if (conf.debug_display == DEBUG_DISPLAY_PARAMS){ 2777 extern long* FlashParamsTable[]; 2778 char s[30]; 2779 int count; 2780 2781 for (i=0;i<10;i++){ 2782 r = 0; 2783 p = debug_propcase_page*10+i; 2784 if (p>=get_flash_params_count()) sprintf(sbuf, "%3d: This parameter does not exists", p); 2785 else { 2786 len=FlashParamsTable[p][1]>>16; 2787 if ((len==1)||(len==2)||(len==4)){ 2788 get_parameter_data(p, &r, len); 2789 sprintf(sbuf, "%3d: %30d :%2d ", p, r,len); 2790 } 2791 else { 2792 if (len>=sizeof(s)) count=sizeof(s)-1; else count=len; 2793 get_parameter_data(p, &s, count); 2794 s[count]=0; 2795 sprintf(sbuf, "%3d: %30s :%2d ", p, s,len); 2796 } 2797 } 2798 draw_string(16,16+16*i,sbuf, conf.osd_color); 2799 } 2800 } 2801 } 2802 2803 if(conf.debug_display == DEBUG_DISPLAY_TASKS) { 2804 gui_debug_draw_tasklist(); 2805 } 2806 #endif 2812 gui_draw_debug_vals_osd(); 2813 2807 2814 if (ubasic_error){ 2808 2815 const char *msg; -
trunk/makefile.inc
r736 r738 233 233 SH = sh 234 234 DEVNULL = NUL 235 SORT = $(dir $(shell which uniq.exe | sed s/\\\\/\\\//g))/sort.exe235 SORT := $(dir $(shell which uniq.exe | sed s/\\\\/\\\//g))/sort.exe 236 236 else 237 237 ifeq ($(HOSTPLATFORM),Linux)
Note: See TracChangeset
for help on using the changeset viewer.