Changeset 128
- Timestamp:
- 04/17/07 19:18:29 (6 years ago)
- Location:
- branches/grand
- Files:
-
- 24 edited
-
core/gui_batt.c (modified) (1 diff)
-
core/gui_batt.h (modified) (1 diff)
-
core/gui_fselect.c (modified) (1 diff)
-
core/gui_read.c (modified) (8 diffs)
-
core/gui_reversi.c (modified) (2 diffs)
-
core/gui_sokoban.c (modified) (2 diffs)
-
core/raw.c (modified) (1 diff)
-
include/platform.h (modified) (1 diff)
-
lib/font/font_8x16_def.h (modified) (3 diffs)
-
lib/font/font_8x16_kbr.h (modified) (1 diff)
-
lib/font/font_8x16_rus.h (modified) (1 diff)
-
lib/font/font_8x16_uni.h (modified) (1 diff)
-
platform/a610/shooting.c (modified) (1 diff)
-
platform/a610/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/a620/shooting.c (modified) (1 diff)
-
platform/a620/sub/100f/stubs_entry.S (modified) (1 diff)
-
platform/a630/shooting.c (modified) (1 diff)
-
platform/a630/sub/100c/stubs_entry.S (modified) (1 diff)
-
platform/a640/shooting.c (modified) (1 diff)
-
platform/a640/sub/100b/stubs_entry.S (modified) (1 diff)
-
platform/a710/shooting.c (modified) (1 diff)
-
platform/a710/sub/100a/stubs_entry.S (modified) (1 diff)
-
platform/s3is/kbd.c (modified) (2 diffs)
-
platform/s3is/shooting.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/grand/core/gui_batt.c
r91 r128 27 27 28 28 //------------------------------------------------------------------- 29 staticunsigned long get_batt_perc() {29 unsigned long get_batt_perc() { 30 30 unsigned long v; 31 31 -
branches/grand/core/gui_batt.h
r51 r128 5 5 6 6 //------------------------------------------------------------------- 7 unsigned long get_batt_perc(); 7 8 extern void gui_batt_draw_osd(); 8 9 -
branches/grand/core/gui_fselect.c
r109 r128 349 349 break; 350 350 case KEY_ERASE: 351 gui_mbox_init("*** Delete file ***", "Are you SURE to delete\nselected file?", 352 MBOX_TEXT_CENTER|MBOX_BTN_YES_NO|MBOX_DEF_BTN2, fselect_delete_cb); 351 if (selected && selected->attr != 0xFF && !(selected->attr & DOS_ATTR_DIRECTORY)) { 352 gui_mbox_init("*** Delete file ***", "Are you SURE to delete\nselected file?", 353 MBOX_TEXT_CENTER|MBOX_BTN_YES_NO|MBOX_DEF_BTN2, fselect_delete_cb); 354 } 353 355 break; 354 356 case KEY_MENU: -
branches/grand/core/gui_read.c
r120 r128 7 7 #include "font.h" 8 8 #include "gui_draw.h" 9 #include "gui_batt.h" 9 10 #include "gui_read.h" 10 11 … … 20 21 static long last_time; 21 22 static int xx, yy; 23 static int pause; 24 25 //------------------------------------------------------------------- 26 static void gui_read_draw_batt() { 27 sprintf(buffer, "Batt:%3d%%", get_batt_perc()); 28 draw_txt_string(screen_width/FONT_WIDTH-2-1-3-9, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); 29 } 30 31 //------------------------------------------------------------------- 32 static void gui_read_draw_scroll_indicator() { 33 draw_txt_char(screen_width/FONT_WIDTH-2, 0, (conf.reader_autoscroll)?((pause)?'\x05':'\x04'):'\x03', MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); //title infoline 34 } 22 35 23 36 //------------------------------------------------------------------- … … 34 47 conf.reader_pos = 0; 35 48 } 49 pause = 0; 36 50 read_to_draw = 1; 37 51 x=6; … … 41 55 last_time = get_tick_count(); 42 56 57 draw_filled_rect(0, 0, screen_width-1, y-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK)); 43 58 draw_filled_rect(0, y, screen_width-1, screen_height-1, MAKE_COLOR((conf.reader_color>>8)&0xFF, (conf.reader_color>>8)&0xFF)); 59 60 gui_read_draw_scroll_indicator(); 61 gui_read_draw_batt(); 44 62 45 63 return (read_file >= 0); … … 57 75 return (xx+rbf_char_width(ch) < x+w); 58 76 } 77 59 78 //------------------------------------------------------------------- 60 79 void gui_read_draw() { 61 if (conf.reader_autoscroll && get_tick_count()-last_time >= conf.reader_autoscroll_delay*1000 && (conf.reader_pos+read_on_screen)<read_file_size) {80 if (conf.reader_autoscroll && !pause && get_tick_count()-last_time >= conf.reader_autoscroll_delay*1000 && (conf.reader_pos+read_on_screen)<read_file_size) { 62 81 conf.reader_pos += read_on_screen; 63 82 read_to_draw = 1; … … 107 126 } 108 127 109 sprintf(buffer, "(%3d%%) %d/%d %45s", (read_file_size)?(conf.reader_pos*100/read_file_size):0, conf.reader_pos, read_file_size, "");128 sprintf(buffer, "(%3d%%) %d/%d ", (read_file_size)?(conf.reader_pos*100/read_file_size):0, conf.reader_pos, read_file_size); 110 129 buffer[screen_width/FONT_WIDTH]=0; 111 130 draw_txt_string(0, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); //title infoline … … 128 147 last_time = get_tick_count(); 129 148 } 149 gui_read_draw_batt(); 130 150 } 131 151 … … 152 172 case KEY_SET: 153 173 break; 174 case KEY_DISPLAY: 175 pause = !pause; 176 gui_read_draw_scroll_indicator(); 177 last_time = get_tick_count(); 178 break; 154 179 case KEY_MENU: 155 180 if (read_file >= 0) { -
branches/grand/core/gui_reversi.c
r57 r128 5 5 #include "gui.h" 6 6 #include "gui_draw.h" 7 #include "gui_batt.h" 7 8 #include "gui_mbox.h" 8 9 #include "gui_reversi.h" … … 401 402 redrawstatus(); 402 403 } 404 405 sprintf(buf, "Batt:%3d%%", get_batt_perc()); 406 draw_txt_string(screen_width/FONT_WIDTH-2-9, screen_height/FONT_HEIGHT-1, buf, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 407 403 408 Timer(); 404 409 } -
branches/grand/core/gui_sokoban.c
r97 r128 6 6 #include "gui.h" 7 7 #include "gui_draw.h" 8 #include "gui_batt.h" 8 9 #include "gui_mbox.h" 9 10 #include "gui_sokoban.h" … … 229 230 } 230 231 } 231 } 232 232 233 sprintf(str, "Batt:%3d%%", get_batt_perc()); 234 draw_txt_string(screen_width/FONT_WIDTH-2-9, screen_height/FONT_HEIGHT-1, str, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 235 } 236 -
branches/grand/core/raw.c
r109 r128 33 33 34 34 t.actime = t.modtime = time(NULL); 35 v=get_file_next_counter();36 35 37 sprintf(dir, RAW_TARGET_DIRECTORY, (conf.raw_in_dir)? ((v>>18)&0x3FF):100);36 sprintf(dir, RAW_TARGET_DIRECTORY, (conf.raw_in_dir)?get_target_dir_num():100); 38 37 mkdir(dir); 39 38 40 39 sprintf(fn, "%s/", dir); 41 sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, prefixes[conf.raw_prefix], (v>>4)&0x3FFF, exts[conf.raw_ext]);40 sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, prefixes[conf.raw_prefix], get_target_file_num(), exts[conf.raw_ext]); 42 41 43 42 fd = open(fn, O_WRONLY|O_CREAT, 0777); -
branches/grand/include/platform.h
r126 r128 75 75 76 76 long get_file_counter(); 77 long get_ file_next_counter();78 long get_ next_photo_dirfile_num();77 long get_target_dir_num(); 78 long get_target_file_num(); 79 79 80 80 /******************************************************************/ -
branches/grand/lib/font/font_8x16_def.h
r91 r128 59 59 0x00, /* 00000000 */ 60 60 0x00, /* 00000000 */ 61 0x 6c, /* 01101100*/62 0xf e, /* 11111110*/63 0xf e, /* 11111110*/64 0xf e, /* 11111110*/65 0xf e, /* 11111110*/66 0x 7c, /* 01111100*/67 0x 38, /* 00111000*/68 0x 10, /* 00010000*/61 0xff, /* 11111111 */ 62 0xff, /* 11111111 */ 63 0xff, /* 11111111 */ 64 0xff, /* 11111111 */ 65 0xff, /* 11111111 */ 66 0xff, /* 11111111 */ 67 0xff, /* 11111111 */ 68 0xff, /* 11111111 */ 69 69 0x00, /* 00000000 */ 70 70 0x00, /* 00000000 */ … … 76 76 0x00, /* 00000000 */ 77 77 0x00, /* 00000000 */ 78 0x 00, /* 00000000 */79 0x 10, /* 00010000 */80 0x 38, /* 00111000 */81 0x 7c, /* 01111100 */82 0xf e, /* 11111110*/83 0x 7c, /* 01111100 */84 0x 38, /* 00111000 */85 0x 10, /* 00010000 */86 0x 00, /* 00000000 */78 0x80, /* 10000000 */ 79 0xc0, /* 11000000 */ 80 0xf0, /* 11110000 */ 81 0xfc, /* 11111100 */ 82 0xff, /* 11111111 */ 83 0xfc, /* 11111100 */ 84 0xf0, /* 11110000 */ 85 0xc0, /* 11000000 */ 86 0x80, /* 10000000 */ 87 87 0x00, /* 00000000 */ 88 88 0x00, /* 00000000 */ … … 94 94 0x00, /* 00000000 */ 95 95 0x00, /* 00000000 */ 96 0x18, /* 00011000 */ 97 0x3c, /* 00111100 */ 98 0x3c, /* 00111100 */ 96 0x00, /* 00000000 */ 99 97 0xe7, /* 11100111 */ 100 98 0xe7, /* 11100111 */ 101 99 0xe7, /* 11100111 */ 102 0x18, /* 00011000 */ 103 0x18, /* 00011000 */ 104 0x3c, /* 00111100 */ 100 0xe7, /* 11100111 */ 101 0xe7, /* 11100111 */ 102 0xe7, /* 11100111 */ 103 0xe7, /* 11100111 */ 104 0xe7, /* 11100111 */ 105 105 0x00, /* 00000000 */ 106 106 0x00, /* 00000000 */ -
branches/grand/lib/font/font_8x16_kbr.h
r74 r128 54 54 0x00, /* 00000000 */ 55 55 56 /* 3 0x03 '' */57 0x00, /* 00000000 */ 58 0x00, /* 00000000 */ 59 0x 6C, /* 01101100 */60 0x FE, /* 11111110 */61 0x FE, /* 11111110*/62 0x FE, /* 11111110*/63 0x FE, /* 11111110*/64 0x FE, /* 11111110*/65 0x FE, /* 11111110*/66 0x 7C, /* 01111100*/67 0x 38, /* 00111000*/68 0x 10, /* 00010000*/69 0x00, /* 00000000 */ 70 0x00, /* 00000000 */ 71 0x00, /* 00000000 */ 72 0x00, /* 00000000 */ 73 74 /* 4 0x04 '' */75 0x00, /* 00000000 */ 76 0x00, /* 00000000 */ 77 0x00, /* 00000000 */ 78 0x 00, /* 00000000 */79 0x 10, /* 00010000 */80 0x 38, /* 00111000 */81 0x 7C, /* 01111100 */82 0x FE, /* 11111110*/83 0x 7C, /* 01111100 */84 0x 38, /* 00111000 */85 0x 10, /* 00010000 */86 0x 00, /* 00000000 */87 0x00, /* 00000000 */ 88 0x00, /* 00000000 */ 89 0x00, /* 00000000 */ 90 0x00, /* 00000000 */ 91 92 /* 5 0x05 '' */93 0x00, /* 00000000 */ 94 0x00, /* 00000000 */ 95 0x00, /* 00000000 */ 96 0x 18, /* 00011000 */97 0x 3C, /* 00111100*/98 0x 3C, /* 00111100*/99 0x E7, /* 11100111 */100 0x E7, /* 11100111 */101 0x E7, /* 11100111 */102 0x 18, /* 00011000*/103 0x 18, /* 00011000*/104 0x 3C, /* 00111100*/56 /* 3 0x03 '^C' */ 57 0x00, /* 00000000 */ 58 0x00, /* 00000000 */ 59 0x00, /* 00000000 */ 60 0x00, /* 00000000 */ 61 0xff, /* 11111111 */ 62 0xff, /* 11111111 */ 63 0xff, /* 11111111 */ 64 0xff, /* 11111111 */ 65 0xff, /* 11111111 */ 66 0xff, /* 11111111 */ 67 0xff, /* 11111111 */ 68 0xff, /* 11111111 */ 69 0x00, /* 00000000 */ 70 0x00, /* 00000000 */ 71 0x00, /* 00000000 */ 72 0x00, /* 00000000 */ 73 74 /* 4 0x04 '^D' */ 75 0x00, /* 00000000 */ 76 0x00, /* 00000000 */ 77 0x00, /* 00000000 */ 78 0x80, /* 10000000 */ 79 0xc0, /* 11000000 */ 80 0xf0, /* 11110000 */ 81 0xfc, /* 11111100 */ 82 0xff, /* 11111111 */ 83 0xfc, /* 11111100 */ 84 0xf0, /* 11110000 */ 85 0xc0, /* 11000000 */ 86 0x80, /* 10000000 */ 87 0x00, /* 00000000 */ 88 0x00, /* 00000000 */ 89 0x00, /* 00000000 */ 90 0x00, /* 00000000 */ 91 92 /* 5 0x05 '^E' */ 93 0x00, /* 00000000 */ 94 0x00, /* 00000000 */ 95 0x00, /* 00000000 */ 96 0x00, /* 00000000 */ 97 0xe7, /* 11100111 */ 98 0xe7, /* 11100111 */ 99 0xe7, /* 11100111 */ 100 0xe7, /* 11100111 */ 101 0xe7, /* 11100111 */ 102 0xe7, /* 11100111 */ 103 0xe7, /* 11100111 */ 104 0xe7, /* 11100111 */ 105 105 0x00, /* 00000000 */ 106 106 0x00, /* 00000000 */ -
branches/grand/lib/font/font_8x16_rus.h
r92 r128 54 54 0x00, /* 00000000 */ 55 55 56 /* 3 0x03 '' */57 0x00, /* 00000000 */ 58 0x00, /* 00000000 */ 59 0x00, /* 00000000 */ 60 0x00, /* 00000000 */ 61 0x 00, /* 00000000*/62 0x 44, /* 01000100*/63 0x EE, /* 11101110*/64 0x FE, /* 11111110*/65 0x FE, /* 11111110*/66 0x 7C, /* 01111100*/67 0x 38, /* 00111000*/68 0x 10, /* 00010000*/69 0x00, /* 00000000 */ 70 0x00, /* 00000000 */ 71 0x00, /* 00000000 */ 72 0x00, /* 00000000 */ 73 74 /* 4 0x04 '' */75 0x00, /* 00000000 */ 76 0x00, /* 00000000 */ 77 0x00, /* 00000000 */ 78 0x 00, /* 00000000 */79 0x 00, /* 00000000 */80 0x 10, /* 00010000 */81 0x 38, /* 00111000 */82 0x 7C, /* 01111100*/83 0x FE, /* 11111110 */84 0x 7C, /* 01111100 */85 0x 38, /* 00111000 */86 0x 10, /* 00010000 */87 0x00, /* 00000000 */ 88 0x00, /* 00000000 */ 89 0x00, /* 00000000 */ 90 0x00, /* 00000000 */ 91 92 /* 5 0x05 '' */93 0x00, /* 00000000 */ 94 0x00, /* 00000000 */ 95 0x00, /* 00000000 */ 96 0x00, /* 00000000 */ 97 0x 18, /* 00011000*/98 0x 3C, /* 00111100*/99 0x 3C, /* 00111100*/100 0x E7, /* 11100111 */101 0x E7, /* 11100111 */102 0x E7, /* 11100111 */103 0x 3C, /* 00111100*/104 0x 18, /* 00011000*/105 0x 3C, /* 00111100 */56 /* 3 0x03 '^C' */ 57 0x00, /* 00000000 */ 58 0x00, /* 00000000 */ 59 0x00, /* 00000000 */ 60 0x00, /* 00000000 */ 61 0xff, /* 11111111 */ 62 0xff, /* 11111111 */ 63 0xff, /* 11111111 */ 64 0xff, /* 11111111 */ 65 0xff, /* 11111111 */ 66 0xff, /* 11111111 */ 67 0xff, /* 11111111 */ 68 0xff, /* 11111111 */ 69 0x00, /* 00000000 */ 70 0x00, /* 00000000 */ 71 0x00, /* 00000000 */ 72 0x00, /* 00000000 */ 73 74 /* 4 0x04 '^D' */ 75 0x00, /* 00000000 */ 76 0x00, /* 00000000 */ 77 0x00, /* 00000000 */ 78 0x80, /* 10000000 */ 79 0xc0, /* 11000000 */ 80 0xf0, /* 11110000 */ 81 0xfc, /* 11111100 */ 82 0xff, /* 11111111 */ 83 0xfc, /* 11111100 */ 84 0xf0, /* 11110000 */ 85 0xc0, /* 11000000 */ 86 0x80, /* 10000000 */ 87 0x00, /* 00000000 */ 88 0x00, /* 00000000 */ 89 0x00, /* 00000000 */ 90 0x00, /* 00000000 */ 91 92 /* 5 0x05 '^E' */ 93 0x00, /* 00000000 */ 94 0x00, /* 00000000 */ 95 0x00, /* 00000000 */ 96 0x00, /* 00000000 */ 97 0xe7, /* 11100111 */ 98 0xe7, /* 11100111 */ 99 0xe7, /* 11100111 */ 100 0xe7, /* 11100111 */ 101 0xe7, /* 11100111 */ 102 0xe7, /* 11100111 */ 103 0xe7, /* 11100111 */ 104 0xe7, /* 11100111 */ 105 0x00, /* 00000000 */ 106 106 0x00, /* 00000000 */ 107 107 0x00, /* 00000000 */ -
branches/grand/lib/font/font_8x16_uni.h
r74 r128 54 54 0x00, /* 00000000 */ 55 55 56 /* 3 0x03 '' */57 0x00, /* 00000000 */ 58 0x00, /* 00000000 */ 59 0x 66, /* 01100110 */60 0x FF, /* 11111111*/61 0x FF, /* 11111111 */62 0x FF, /* 11111111 */63 0x FF, /* 11111111 */64 0x 7E, /* 01111110*/65 0x 7E, /* 01111110*/66 0x 3C, /* 00111100*/67 0x 18, /* 00011000*/68 0x 18, /* 00011000*/69 0x00, /* 00000000 */ 70 0x00, /* 00000000 */ 71 0x00, /* 00000000 */ 72 0x00, /* 00000000 */ 73 74 /* 4 0x04 '' */75 0x00, /* 00000000 */ 76 0x00, /* 00000000 */ 77 0x00, /* 00000000 */ 78 0x 00, /* 00000000 */79 0x 18, /* 00011000 */80 0x 3C, /* 00111100 */81 0x 7E, /* 01111110 */82 0x FF, /* 11111111 */83 0x 7E, /* 01111110 */84 0x 3C, /* 00111100 */85 0x 18, /* 00011000 */86 0x 00, /* 00000000 */87 0x00, /* 00000000 */ 88 0x00, /* 00000000 */ 89 0x00, /* 00000000 */ 90 0x00, /* 00000000 */ 91 92 /* 5 0x05 '' */93 0x00, /* 00000000 */ 94 0x00, /* 00000000 */ 95 0x 3C, /* 00111100 */96 0x 3C, /* 00111100 */97 0x 18, /* 00011000*/98 0x FF, /* 11111111 */99 0x FF, /* 11111111 */100 0x DB, /* 11011011 */101 0x 18, /* 00011000*/102 0x 18, /* 00011000*/103 0x 3C, /* 00111100*/104 0x 3C, /* 00111100*/56 /* 3 0x03 '^C' */ 57 0x00, /* 00000000 */ 58 0x00, /* 00000000 */ 59 0x00, /* 00000000 */ 60 0x00, /* 00000000 */ 61 0xff, /* 11111111 */ 62 0xff, /* 11111111 */ 63 0xff, /* 11111111 */ 64 0xff, /* 11111111 */ 65 0xff, /* 11111111 */ 66 0xff, /* 11111111 */ 67 0xff, /* 11111111 */ 68 0xff, /* 11111111 */ 69 0x00, /* 00000000 */ 70 0x00, /* 00000000 */ 71 0x00, /* 00000000 */ 72 0x00, /* 00000000 */ 73 74 /* 4 0x04 '^D' */ 75 0x00, /* 00000000 */ 76 0x00, /* 00000000 */ 77 0x00, /* 00000000 */ 78 0x80, /* 10000000 */ 79 0xc0, /* 11000000 */ 80 0xf0, /* 11110000 */ 81 0xfc, /* 11111100 */ 82 0xff, /* 11111111 */ 83 0xfc, /* 11111100 */ 84 0xf0, /* 11110000 */ 85 0xc0, /* 11000000 */ 86 0x80, /* 10000000 */ 87 0x00, /* 00000000 */ 88 0x00, /* 00000000 */ 89 0x00, /* 00000000 */ 90 0x00, /* 00000000 */ 91 92 /* 5 0x05 '^E' */ 93 0x00, /* 00000000 */ 94 0x00, /* 00000000 */ 95 0x00, /* 00000000 */ 96 0x00, /* 00000000 */ 97 0xe7, /* 11100111 */ 98 0xe7, /* 11100111 */ 99 0xe7, /* 11100111 */ 100 0xe7, /* 11100111 */ 101 0xe7, /* 11100111 */ 102 0xe7, /* 11100111 */ 103 0xe7, /* 11100111 */ 104 0xe7, /* 11100111 */ 105 105 0x00, /* 00000000 */ 106 106 0x00, /* 00000000 */ -
branches/grand/platform/a610/shooting.c
r109 r128 3 3 #include "../generic/shooting.c" 4 4 5 long get_next_photo_dirfile_num() 6 { 7 long tmp; 8 long dirnum, filenum; 9 10 tmp = get_file_next_counter(); 11 12 dirnum = (tmp>>18)&0x3FF; 13 filenum = ((tmp>>4)&0x3FFF); 14 15 if ((filenum % 100) == 0){ 16 dirnum++; 17 } 18 19 return (dirnum << 16) | (filenum); 5 static long get_file_next_counter() { 6 return ((get_file_counter()>>4)+1)<<4; 20 7 } 21 8 22 long get_file_next_counter() 23 { 24 return ((get_file_counter()>>4)+1)<<4; 9 long get_target_file_num() { 10 long n; 11 12 n = get_file_next_counter(); 13 n = (n>>4)&0x3FFF; 14 return n; 25 15 } 16 17 long get_target_dir_num() { 18 long n; 19 20 n = get_file_next_counter(); 21 n = (n>>18)&0x3FF; 22 if (get_target_file_num()%100 == 1) ++n; 23 return n; 24 } -
branches/grand/platform/a610/sub/100f/stubs_entry.S
r109 r128 15 15 NSTUB(GetCurrentAvValue, 0xffe7169c) 16 16 // ALT: NSTUB(GetCurrentAvValue, 0xffe73a9c) // 13/0 17 NSTUB(GetCurrentTargetDistance, 0xffe73a44) 17 18 NSTUB(GetFocusLensSubjectDistance, 0xffe66b78) 18 19 NSTUB(GetParameterData, 0xffd4e684) -
branches/grand/platform/a620/shooting.c
r109 r128 3 3 #include "../generic/shooting.c" 4 4 5 long get_next_photo_dirfile_num() 6 { 7 long tmp; 8 long dirnum, filenum; 9 10 tmp = get_file_next_counter(); 11 12 dirnum = (tmp>>18)&0x3FF; 13 filenum = ((tmp>>4)&0x3FFF); 14 15 if ((filenum % 100) == 0){ 16 dirnum++; 17 } 18 19 return (dirnum << 16) | (filenum); 5 static long get_file_next_counter() { 6 return ((get_file_counter()>>4)+1)<<4; 20 7 } 21 8 22 long get_file_next_counter() 23 { 24 return ((get_file_counter()>>4)+1)<<4; 9 long get_target_file_num() { 10 long n; 11 12 n = get_file_next_counter(); 13 n = (n>>4)&0x3FFF; 14 return n; 25 15 } 16 17 long get_target_dir_num() { 18 long n; 19 20 n = get_file_next_counter(); 21 n = (n>>18)&0x3FF; 22 if (get_target_file_num()%100 == 1) ++n; 23 return n; 24 } -
branches/grand/platform/a620/sub/100f/stubs_entry.S
r109 r128 15 15 NSTUB(GetCurrentAvValue, 0xffe77ff0) 16 16 // ALT: NSTUB(GetCurrentAvValue, 0xffe7a3f0) // 13/0 17 NSTUB(GetCurrentTargetDistance, 0xffe7a398) 17 18 // Best match: 96% 18 19 NSTUB(GetFocusLensSubjectDistance, 0xffe6d4ac) -
branches/grand/platform/a630/shooting.c
r109 r128 3 3 #include "../generic/shooting.c" 4 4 5 long get_next_photo_dirfile_num() 6 { 7 long tmp; 8 long dirnum, filenum; 9 10 tmp = get_file_next_counter(); 11 12 dirnum = (tmp>>18)&0x3FF; 13 filenum = ((tmp>>4)&0x3FFF); 14 15 if ((filenum % 100) == 0){ 16 dirnum++; 17 } 18 19 return (dirnum << 16) | (filenum); 5 static long get_file_next_counter() { 6 return get_file_counter(); 20 7 } 21 8 22 long get_file_next_counter() 23 { 24 return get_file_counter(); 9 long get_target_file_num() { 10 long n; 11 12 n = get_file_next_counter(); 13 n = (n>>4)&0x3FFF; 14 return n; 25 15 } 16 17 long get_target_dir_num() { 18 long n; 19 20 n = get_file_next_counter(); 21 n = (n>>18)&0x3FF; 22 return n; 23 } -
branches/grand/platform/a630/sub/100c/stubs_entry.S
r109 r128 17 17 // ALT: NSTUB(GetCurrentAvValue, 0xffea70f4) // 13/0 18 18 // ALT: NSTUB(GetCurrentAvValue, 0xffea9528) // 13/0 19 NSTUB(GetCurrentTargetDistance, 0xffea94d0) 19 20 // Best match: 96% 20 21 NSTUB(GetFocusLensSubjectDistance, 0xffe9b4fc) -
branches/grand/platform/a640/shooting.c
r109 r128 3 3 #include "../generic/shooting.c" 4 4 5 long get_next_photo_dirfile_num() 6 { 7 long tmp; 8 long dirnum, filenum; 9 10 tmp = get_file_next_counter(); 11 12 dirnum = (tmp>>18)&0x3FF; 13 filenum = ((tmp>>4)&0x3FFF); 14 15 if ((filenum % 100) == 0){ 16 dirnum++; 17 } 18 19 return (dirnum << 16) | (filenum); 5 static long get_file_next_counter() { 6 return get_file_counter(); 20 7 } 21 8 22 long get_file_next_counter() 23 { 24 return get_file_counter(); 9 long get_target_file_num() { 10 long n; 11 12 n = get_file_next_counter(); 13 n = (n>>4)&0x3FFF; 14 return n; 25 15 } 16 17 long get_target_dir_num() { 18 long n; 19 20 n = get_file_next_counter(); 21 n = (n>>18)&0x3FF; 22 return n; 23 } -
branches/grand/platform/a640/sub/100b/stubs_entry.S
r109 r128 16 16 // ALT: NSTUB(GetCurrentAvValue, 0xffeb0ac0) // 13/0 17 17 // ALT: NSTUB(GetCurrentAvValue, 0xffeb2f20) // 13/0 18 NSTUB(GetCurrentTargetDistance, 0xffeb2ec8) 18 19 // Best match: 96% 19 20 NSTUB(GetFocusLensSubjectDistance, 0xffea4e74) -
branches/grand/platform/a710/shooting.c
r109 r128 3 3 #include "../generic/shooting.c" 4 4 5 long get_next_photo_dirfile_num() 6 { 7 long tmp; 8 long dirnum, filenum; 9 10 tmp = get_file_next_counter(); 11 12 dirnum = (tmp>>18)&0x3FF; 13 filenum = ((tmp>>4)&0x3FFF); 14 15 if ((filenum % 100) == 0){ 16 dirnum++; 17 } 18 19 return (dirnum << 16) | (filenum); 5 static long get_file_next_counter() { 6 return get_file_counter(); 20 7 } 21 8 22 long get_file_next_counter() 23 { 24 return get_file_counter(); 9 long get_target_file_num() { 10 long n; 11 12 n = get_file_next_counter(); 13 n = (n>>4)&0x3FFF; 14 return n; 25 15 } 16 17 long get_target_dir_num() { 18 long n; 19 20 n = get_file_next_counter(); 21 n = (n>>18)&0x3FF; 22 return n; 23 } -
branches/grand/platform/a710/sub/100a/stubs_entry.S
r109 r128 16 16 // ALT: NSTUB(GetCurrentAvValue, 0xffeb3e48) // 13/0 17 17 // ALT: NSTUB(GetCurrentAvValue, 0xffeb628c) // 13/0 18 NSTUB(GetCurrentTargetDistance, 0xffeb6234) 18 19 NSTUB(GetFocusLensSubjectDistance, 0xffea2f3c) 19 20 NSTUB(GetParameterData, 0xffd76090) -
branches/grand/platform/s3is/kbd.c
r125 r128 215 215 { 0, KEY_SHOOT_HALF , 0x00000001 }, 216 216 { 1, KEY_ZOOM_IN , 0x10000000 }, 217 { 1, KEY_ZOOM_IN , 0x 08000000 },217 { 1, KEY_ZOOM_IN , 0x18000000 }, 218 218 { 1, KEY_ZOOM_OUT , 0x01000000 }, 219 219 { 1, KEY_ZOOM_OUT , 0x05000000 }, … … 221 221 { 1, KEY_DISPLAY , 0x00002000 }, 222 222 { 1, KEY_PRINT , 0x00004000 }, 223 { 1, KEY_ERASE , 0x0 4000000 },223 { 1, KEY_ERASE , 0x00400000 }, 224 224 { 0, 0, 0 } 225 225 }; -
branches/grand/platform/s3is/shooting.c
r125 r128 3 3 #include "../generic/shooting.c" 4 4 5 long get_next_photo_dirfile_num() 6 { 7 long tmp; 8 long dirnum, filenum; 9 10 tmp = get_file_next_counter(); 11 12 dirnum = (tmp>>18)&0x3FF; 13 filenum = ((tmp>>4)&0x3FFF); 14 15 if ((filenum % 100) == 0){ 16 dirnum++; 17 } 18 19 return (dirnum << 16) | (filenum); 5 static long get_file_next_counter() { 6 return get_file_counter(); 20 7 } 21 8 22 long get_file_next_counter() 23 { 24 return get_file_counter(); 9 long get_target_file_num() { 10 long n; 11 12 n = get_file_next_counter(); 13 n = (n>>4)&0x3FFF; 14 return n; 25 15 } 16 17 long get_target_dir_num() { 18 long n; 19 20 n = get_file_next_counter(); 21 n = (n>>18)&0x3FF; 22 return n; 23 }
Note: See TracChangeset
for help on using the changeset viewer.