Changeset 613
- Timestamp:
- 12/02/08 14:34:23 (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
Makefile (modified) (1 diff)
-
core/gui.c (modified) (5 diffs)
-
core/gui_fselect.c (modified) (1 diff)
-
lib/font/rbf_font.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r586 r613 58 58 version: FORCE 59 59 echo "**** Build: $(BUILD_NUMBER)" 60 echo "BUILD_NUMBER := $(BUILD_NUMBER)" > version.inc60 # echo "BUILD_NUMBER := $(BUILD_NUMBER)" > version.inc 61 61 62 62 FORCE: -
trunk/core/gui.c
r603 r613 146 146 #endif 147 147 static void gui_draw_load_menu_rbf(int arg); 148 static void gui_draw_load_symbol_rbf(int arg); //AKA148 static void gui_draw_load_symbol_rbf(int arg); //AKA 149 149 #ifdef OPT_TEXTREADER 150 150 static void gui_draw_load_rbf(int arg); … … 158 158 static void gui_menuproc_edge_load(int arg); 159 159 static void gui_menuproc_edge_free(int arg); 160 160 #ifdef OPT_DEBUGGING 161 void gui_compare_props(int arg); 162 #endif 161 163 #ifndef OPTIONS_AUTOSAVE 162 164 static void gui_menuproc_save(int arg); … … 1845 1847 #define DEBUG_DISPLAY_TASKS 3 1846 1848 static const char * gui_debug_shortcut_enum(int change, int arg) { 1847 static const char* modes[]={ "None", "Dmp RAM", "Page"};1849 static const char* modes[]={ "None", "DmpRAM", "Page", "CmpProps"}; 1848 1850 1849 1851 conf.debug_shortcut_action += change; … … 1891 1893 debug_propcase_page = 0; 1892 1894 } 1895 break; 1896 case 3: 1897 gui_compare_props(1); 1893 1898 break; 1894 1899 } … … 3183 3188 } 3184 3189 3190 #ifdef OPT_DEBUGGING 3191 3192 void gui_compare_props(int arg) 3193 { 3194 #define NUM_PROPS 512 3195 static int initialized = 0; 3196 static int props[NUM_PROPS] = { }; 3197 char buf[64]; 3198 int i; 3199 int p; 3200 int c; 3201 3202 3203 if( initialized ) 3204 { // we have previous data set! do a comparison 3205 c = 0; 3206 for( i = 0; i < NUM_PROPS; ++i ) 3207 { 3208 p = shooting_get_prop(i); 3209 if( props[i] != p ) 3210 { 3211 ++c; 3212 sprintf(buf,"%4d is %8d was %8d",i,p,props[i]); 3213 draw_string(16,16*c,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); 3214 } 3215 props[i] = p; 3216 if( c == 12 ) 3217 { 3218 ++c; 3219 sprintf(buf,"%s","Waiting 15 Seconds"); 3220 draw_string(16,16*c,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); 3221 msleep(15000); 3222 c = 0; 3223 } 3224 } 3225 ++c; 3226 sprintf(buf,"%s","Press <ALT> to leave"); 3227 draw_string(16,16*c,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW)); 3228 } 3229 else 3230 { 3231 // no previous data was set so we save the data initially 3232 for( i = 0; i < NUM_PROPS; ++i ) 3233 { 3234 props[i] = shooting_get_prop(i); 3235 } 3236 } 3237 initialized = 1; 3238 } 3239 3240 #endif -
trunk/core/gui_fselect.c
r594 r613 656 656 static void fselect_marked_paste_cb(unsigned int btn) { 657 657 struct fitem *ptr; 658 int ss, sd , fsrc, fdst, i=0;658 int ss, sd = 0, fsrc, fdst, i=0; 659 659 register int *buf; 660 660 unsigned char fend; -
trunk/lib/font/rbf_font.c
r515 r613 211 211 212 212 for (i=0; i<256; ++i) { 213 rbf_assign_char_8x16(&rbf_font.cTable[i], font[i], rbf_font.height);213 rbf_assign_char_8x16(&rbf_font.cTable[i], (char*)font[i], rbf_font.height); 214 214 } 215 215 need_free = 1;
Note: See TracChangeset
for help on using the changeset viewer.