FONT_WIDTH 88 core/console.c int x = console_x * FONT_WIDTH + camera_screen.disp_left; FONT_WIDTH 96 core/console.c draw_string_justified(x, y - c * FONT_HEIGHT, buf, col, 0, console_line_length * FONT_WIDTH, TEXT_LEFT|TEXT_FILL); FONT_WIDTH 222 core/console.c coord x = (camera_screen.width - w * FONT_WIDTH) >> 1; FONT_WIDTH 225 core/console.c draw_rectangle(x-3, y-3, x+w*FONT_WIDTH+3, y+(h+1)*FONT_HEIGHT+2, col, RECT_BORDER1|DRAW_FILLED); // main box FONT_WIDTH 226 core/console.c draw_rectangle(x-2, y-2, x+w*FONT_WIDTH+2, y+FONT_HEIGHT+1, col, RECT_BORDER1|DRAW_FILLED); //title FONT_WIDTH 228 core/console.c draw_string_justified(x, y, "Console - press SET to close", col, 0, w*FONT_WIDTH, TEXT_CENTER); //title text FONT_WIDTH 235 core/console.c draw_string_justified(x-1, y + c * FONT_HEIGHT, console_buf[i], col, 0, w * FONT_WIDTH, TEXT_LEFT|TEXT_FILL); FONT_WIDTH 239 core/console.c draw_rectangle(x+w*FONT_WIDTH, y+((MAX_CONSOLE_HISTORY-console_scroll-h)*(h*FONT_HEIGHT))/MAX_CONSOLE_HISTORY, FONT_WIDTH 240 core/console.c x+w*FONT_WIDTH+2, y+((MAX_CONSOLE_HISTORY-console_scroll)*(h*FONT_HEIGHT))/MAX_CONSOLE_HISTORY-1, FONT_WIDTH 207 core/gps.c draw_txt_string( (camera_screen.width/FONT_WIDTH-strlen(buf))>>1 , line, buf, color) ; FONT_WIDTH 278 core/gui.c coord x = (camera_screen.width - EXP_TEXT_WIDTH*FONT_WIDTH) >> 1; FONT_WIDTH 293 core/gui.c draw_string(x-((strlen(under_dev_text)*FONT_WIDTH)>>1), y, under_dev_text, cl); FONT_WIDTH 2325 core/gui.c logo_text_width = logo_text_width * FONT_WIDTH + 10; FONT_WIDTH 2354 core/gui.c draw_string(x+((logo_text_width-strlen(text[i])*FONT_WIDTH)>>1), y+i*FONT_HEIGHT+4, text[i], cl); FONT_WIDTH 2585 core/gui.c int x = ((camera_screen.width/2)-(FONT_WIDTH*35/2)); FONT_WIDTH 2950 core/gui.c draw_string(FONT_WIDTH, FONT_HEIGHT, lang_str(LANG_ERROR_MISSING_MODULES), user_color(conf.osd_color_warn)); FONT_WIDTH 899 core/gui_draw.c draw_hline(x, y+i, FONT_WIDTH, BG_COLOR(cl)); FONT_WIDTH 915 core/gui_draw.c for (ii=0; ii<FONT_WIDTH; ii++) FONT_WIDTH 922 core/gui_draw.c for (ii=0; ii<FONT_WIDTH; ii++) FONT_WIDTH 933 core/gui_draw.c draw_hline(x, y+i, FONT_WIDTH, BG_COLOR(cl)); FONT_WIDTH 947 core/gui_draw.c unsigned int fw = FONT_WIDTH; FONT_WIDTH 1105 core/gui_draw.c draw_rectangle(x,y,x+FONT_WIDTH*xsize-1,y+offset*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 1126 core/gui_draw.c for (ii=1; ii<FONT_WIDTH; ii++) FONT_WIDTH 1148 core/gui_draw.c draw_rectangle(x,y+i*ysize,x+FONT_WIDTH*xsize-1,y+FONT_HEIGHT*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 1167 core/gui_draw.c draw_rectangle(x,y,x+FONT_WIDTH*xsize-1,y+offset*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 1177 core/gui_draw.c unsigned int lastmask = 1 << (FONT_WIDTH-1); FONT_WIDTH 1202 core/gui_draw.c for (ii=1; ii<FONT_WIDTH; ii++) FONT_WIDTH 1224 core/gui_draw.c draw_rectangle(x,y+i*ysize,x+FONT_WIDTH*xsize-1,y+FONT_REAL_HEIGHT*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 1233 core/gui_draw.c while (*s && (*s != '\n') && (max_width >= FONT_WIDTH)) FONT_WIDTH 1237 core/gui_draw.c max_width -= FONT_WIDTH; FONT_WIDTH 1238 core/gui_draw.c x += FONT_WIDTH; FONT_WIDTH 1241 core/gui_draw.c draw_char(x-FONT_WIDTH,y, '>', cl); FONT_WIDTH 1265 core/gui_draw.c l = (e - s) * FONT_WIDTH; FONT_WIDTH 1267 core/gui_draw.c l = strlen(s) * FONT_WIDTH; FONT_WIDTH 1340 core/gui_draw.c rx = draw_string_justified(x, y, s, cl, 0, max_chars*FONT_WIDTH, justification); FONT_WIDTH 1357 core/gui_draw.c x+=FONT_WIDTH*xsize; FONT_WIDTH 1360 core/gui_draw.c draw_char_scaled(x-FONT_WIDTH*xsize,y, '>', cl, xsize, ysize); FONT_WIDTH 1390 core/gui_draw.c x+=FONT_WIDTH*xsize; FONT_WIDTH 1393 core/gui_draw.c draw_char_scaled(x-FONT_WIDTH*xsize,y, '>', cl, xsize, ysize); FONT_WIDTH 1435 core/gui_draw.c draw_string(col*FONT_WIDTH, row*FONT_HEIGHT, str, cl); FONT_WIDTH 1557 core/gui_draw.c w = w * FONT_WIDTH; FONT_WIDTH 1560 core/gui_draw.c draw_string(x+((w-(strlen(lang_str(str_id))*FONT_WIDTH))>>1), y, lang_str(str_id), cl); FONT_WIDTH 85 core/gui_mbox.c int bw=(mbox_buttons_num*BUTTON_SIZE*FONT_WIDTH+(mbox_buttons_num-1)*BUTTON_SEP); FONT_WIDTH 90 core/gui_mbox.c if (bw+BUTTON_SEP > w*FONT_WIDTH) FONT_WIDTH 91 core/gui_mbox.c w = (bw+BUTTON_SEP)/FONT_WIDTH+1; FONT_WIDTH 93 core/gui_mbox.c coord x = (camera_screen.width - w * FONT_WIDTH) >> 1; FONT_WIDTH 95 core/gui_mbox.c draw_rectangle(x-4, y-4, x+w*FONT_WIDTH+4, y+(h+2)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+7, FONT_WIDTH 97 core/gui_mbox.c draw_rectangle(x-2, y-2, x+w*FONT_WIDTH+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); //title FONT_WIDTH 99 core/gui_mbox.c draw_string_justified(x, y, mbox_title, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, w*FONT_WIDTH, TEXT_CENTER); //title text FONT_WIDTH 108 core/gui_mbox.c draw_text_justified(x+FONT_WIDTH, y, mbox_msg, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), w-1, MAX_LINES, justification); // text FONT_WIDTH 110 core/gui_mbox.c mbox_buttons_x = x+((w*FONT_WIDTH-bw)>>1); FONT_WIDTH 119 core/gui_mbox.c draw_button(mbox_buttons_x + i * (BUTTON_SIZE*FONT_WIDTH+BUTTON_SEP), mbox_buttons_y, BUTTON_SIZE, buttons[mbox_buttons[i]].text, (mbox_button_active == i)); FONT_WIDTH 161 core/gui_mbox.c if ((sx >= x) && (sx <= x+BUTTON_SIZE*FONT_WIDTH+3)) FONT_WIDTH 170 core/gui_mbox.c x += BUTTON_SIZE*FONT_WIDTH+BUTTON_SEP; FONT_WIDTH 107 core/gui_osd.c draw_osd_string(conf.dof_pos, i*FONT_WIDTH, 0, osd_buf, (f_ex && (camera_info.dof_values.distance_valid || shooting_get_focus_mode()))?valid_col:col, conf.dof_scale); FONT_WIDTH 109 core/gui_osd.c draw_osd_string(conf.dof_pos, i*FONT_WIDTH, 0, "/", col, conf.dof_scale); FONT_WIDTH 112 core/gui_osd.c draw_osd_string(conf.dof_pos, (++i)*FONT_WIDTH, 0, osd_buf, (f_ex && camera_info.dof_values.distance_valid)?valid_col:col, conf.dof_scale); FONT_WIDTH 114 core/gui_osd.c draw_osd_string(conf.dof_pos, i*FONT_WIDTH, 0, "/", col, conf.dof_scale); FONT_WIDTH 116 core/gui_osd.c draw_osd_string(conf.dof_pos, (++i)*FONT_WIDTH, 0, osd_buf, (f_ex && camera_info.dof_values.distance_valid)?valid_col:col, conf.dof_scale); FONT_WIDTH 121 core/gui_osd.c draw_osd_string(conf.dof_pos, i*FONT_WIDTH, FONT_HEIGHT, osd_buf, (f_ex && camera_info.dof_values.distance_valid)?valid_col:col, conf.dof_scale); FONT_WIDTH 123 core/gui_osd.c draw_osd_string(conf.dof_pos, i*FONT_WIDTH, FONT_HEIGHT, "/", col, conf.dof_scale); FONT_WIDTH 125 core/gui_osd.c draw_osd_string(conf.dof_pos, (++i)*FONT_WIDTH, FONT_HEIGHT, osd_buf, (f_ex && camera_info.dof_values.hyperfocal_valid)?valid_col:col, conf.dof_scale); FONT_WIDTH 195 core/gui_osd.c draw_osd_string(conf.values_pos, i*FONT_WIDTH, m, osd_buf, use_good_color?valid_col:col, conf.values_scale); FONT_WIDTH 487 core/gui_osd.c if (conf.clock_pos.x >= 4*FONT_WIDTH) w = 3; FONT_WIDTH 488 core/gui_osd.c draw_osd_string(conf.clock_pos, w*FONT_WIDTH, 0, osd_buf, cl, conf.clock_scale); FONT_WIDTH 1113 core/gui_osd.c int DBGMISCVALS_X = ((camera_screen.width/FONT_WIDTH)-17); FONT_WIDTH 141 core/memmgmt.c draw_string(2*FONT_WIDTH, 12*FONT_HEIGHT, osd_buf, user_color(conf.osd_color)); FONT_WIDTH 148 core/memmgmt.c draw_string(2*FONT_WIDTH, 13*FONT_HEIGHT, osd_buf, user_color(conf.osd_color)); FONT_WIDTH 88 lib/font/rbf_font.c f->width = FONT_WIDTH; FONT_WIDTH 252 lib/font/rbf_font.c rbf_font->hdr.maxWidth = FONT_WIDTH; FONT_WIDTH 291 modules/exmem_inspector.c draw_string(camera_screen.disp_left+17*FONT_WIDTH, 0, "LIST, HALFSHOOT->LOG", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 300 modules/exmem_inspector.c draw_string(camera_screen.disp_left+17*FONT_WIDTH, 0, "LOG, HALFSHOOT->LIST", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 985 modules/file_shelter.c dispw = camera_screen.width / FONT_WIDTH; FONT_WIDTH 1030 modules/file_shelter.c draw_char(camera_screen.disp_left+FONT_WIDTH*30, 0, '*', MAKE_COLOR(COLOR_BLACK, COLOR_BLUE)); FONT_WIDTH 1033 modules/file_shelter.c draw_char(camera_screen.disp_left+FONT_WIDTH*30, 0, ' ', MAKE_COLOR(COLOR_BLACK, COLOR_BLUE)); FONT_WIDTH 26 modules/games/gui_4wins.c #define XBORDER (camera_screen.disp_left+FONT_WIDTH) FONT_WIDTH 199 modules/games/gui_4wins.c w = (strlen(text) + 2) * FONT_WIDTH; FONT_WIDTH 274 modules/games/gui_4wins.c int x = camera_screen.disp_right - 15 * FONT_WIDTH; FONT_WIDTH 275 modules/games/gui_4wins.c draw_string_justified(x, 4 * FONT_HEIGHT, (mode_rival == 1) ? lang_str(LANG_CONNECT4_HUMAN) : "cam", TEXT_COLOR, 0, 12 * FONT_WIDTH, TEXT_LEFT | TEXT_FILL); FONT_WIDTH 350 modules/games/gui_4wins.c draw_rectangle(camera_screen.disp_right - 16 * FONT_WIDTH, 5 * FONT_HEIGHT, camera_screen.disp_right - FONT_WIDTH, camera_screen.height - 10, MAKE_COLOR(INFO_COLOR, INFO_COLOR), RECT_BORDER0 | DRAW_FILLED | RECT_ROUND_CORNERS); FONT_WIDTH 351 modules/games/gui_4wins.c draw_string(camera_screen.disp_left + 12 * FONT_WIDTH, 0, lang_str(LANG_MENU_GAMES_CONNECT4), TEXT_COLOR); FONT_WIDTH 368 modules/games/gui_4wins.c draw_string(camera_screen.disp_right - 15 * FONT_WIDTH, 3 * FONT_HEIGHT, lang_str(LANG_CONNECT4_RIVAL), TEXT_COLOR); FONT_WIDTH 370 modules/games/gui_4wins.c draw_string(camera_screen.disp_right - (10 + strlen(str)) * FONT_WIDTH, camera_screen.height - 9 * FONT_HEIGHT, str, MAKE_COLOR(INFO_COLOR, P1_COLOR)); FONT_WIDTH 372 modules/games/gui_4wins.c draw_string(camera_screen.disp_right - 9 * FONT_WIDTH, camera_screen.height - 9 * FONT_HEIGHT, str, INFO_TEXT_COLOR); FONT_WIDTH 374 modules/games/gui_4wins.c draw_string(camera_screen.disp_right - 7 * FONT_WIDTH, camera_screen.height - 9 * FONT_HEIGHT, str, MAKE_COLOR(INFO_COLOR, P2_COLOR)); FONT_WIDTH 416 modules/games/gui_4wins.c draw_string(camera_screen.disp_right - 12 * FONT_WIDTH, camera_screen.height - 2 * FONT_HEIGHT, str, INFO_TEXT_COLOR); FONT_WIDTH 417 modules/games/gui_4wins.c gui_osd_draw_clock(camera_screen.disp_right - 11 * FONT_WIDTH, camera_screen.height - 3 * FONT_HEIGHT, INFO_TEXT_COLOR, 1); FONT_WIDTH 38 modules/games/gui_mastermind.c x = camera_screen.disp_left+FONT_WIDTH+(x*cell_size); FONT_WIDTH 45 modules/games/gui_mastermind.c int x = camera_screen.disp_left+4*cell_size+10+(pos+2)*(FONT_WIDTH+2); FONT_WIDTH 46 modules/games/gui_mastermind.c int y = FONT_HEIGHT+FONT_HEIGHT/2+(curr_y*cell_size) + cell_size/2 - FONT_WIDTH/2 + 1; FONT_WIDTH 47 modules/games/gui_mastermind.c draw_rectangle(x, y, x+FONT_WIDTH-2, y+FONT_WIDTH-2, MAKE_COLOR(col,col), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 93 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right-24*FONT_WIDTH, camera_screen.height-6*FONT_HEIGHT-FONT_HEIGHT/2, msg, TEXT_COLOR); FONT_WIDTH 152 modules/games/gui_mastermind.c draw_hline(camera_screen.disp_left + FONT_WIDTH / 2, FONT_HEIGHT * 2 + 8 * cell_size, 4 * cell_size + FONT_WIDTH, COLOR_WHITE); FONT_WIDTH 153 modules/games/gui_mastermind.c draw_vline(camera_screen.disp_left + 4 * cell_size + FONT_WIDTH * 2, FONT_HEIGHT, 8 * cell_size, COLOR_WHITE); FONT_WIDTH 154 modules/games/gui_mastermind.c draw_vline(camera_screen.disp_left + 4 * cell_size + FONT_WIDTH * 2 + 3, FONT_HEIGHT, 8 * cell_size, COLOR_WHITE); FONT_WIDTH 157 modules/games/gui_mastermind.c draw_rectangle(camera_screen.disp_right - (24 - i * 4) * FONT_WIDTH, 2 * FONT_HEIGHT + FONT_HEIGHT / 2, camera_screen.disp_right - (24 - i * 4) * FONT_WIDTH + FONT_HEIGHT, 3 * FONT_HEIGHT + FONT_HEIGHT / 2, MAKE_COLOR(colors[i], colors[i]), FONT_WIDTH 160 modules/games/gui_mastermind.c draw_rectangle(camera_screen.disp_right - 19 * FONT_WIDTH - FONT_HEIGHT - 8, 5 * FONT_HEIGHT, camera_screen.disp_right - 19 * FONT_WIDTH - 8, 6 * FONT_HEIGHT, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0 | DRAW_FILLED); FONT_WIDTH 161 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right - 19 * FONT_WIDTH, 5 * FONT_HEIGHT, lang_str(LANG_MENU_GAMES_RIGHT_PLACE), TEXT_COLOR); FONT_WIDTH 163 modules/games/gui_mastermind.c draw_rectangle(camera_screen.disp_right - 19 * FONT_WIDTH - FONT_HEIGHT - 8, 6 * FONT_HEIGHT + FONT_HEIGHT / 2, camera_screen.disp_right - 19 * FONT_WIDTH - 8, 7 * FONT_HEIGHT + FONT_HEIGHT / 2, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), FONT_WIDTH 165 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right - 19 * FONT_WIDTH, 6 * FONT_HEIGHT + FONT_HEIGHT / 2, lang_str(LANG_MENU_GAMES_C_IN_ANSWER), TEXT_COLOR); FONT_WIDTH 167 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right - 24 * FONT_WIDTH, FONT_HEIGHT + FONT_HEIGHT / 2, lang_str(LANG_MENU_GAMES_AC_COLORS), TEXT_COLOR); FONT_WIDTH 169 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right - 24 * FONT_WIDTH, camera_screen.height - 3 * FONT_HEIGHT, lang_str(LANG_MENU_GAMES_CURSOR1), TEXT_COLOR); FONT_WIDTH 170 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right - 24 * FONT_WIDTH, camera_screen.height - 4 * FONT_HEIGHT, lang_str(LANG_MENU_GAMES_CURSOR2), TEXT_COLOR); FONT_WIDTH 171 modules/games/gui_mastermind.c draw_string(camera_screen.disp_right - 24 * FONT_WIDTH, camera_screen.height - 5 * FONT_HEIGHT, lang_str(LANG_MENU_GAMES_CURSOR3), TEXT_COLOR); FONT_WIDTH 269 modules/games/gui_mastermind.c draw_string(camera_screen.disp_left+15*FONT_WIDTH, 0, lang_str(LANG_MENU_GAMES_MASTERMIND), MAKE_COLOR(COLOR_GREY, COLOR_WHITE)); FONT_WIDTH 274 modules/games/gui_mastermind.c buf, TEXT_COLOR, 0, camera_screen.disp_width-FONT_WIDTH, TEXT_RIGHT); FONT_WIDTH 331 modules/games/gui_reversi.c draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*2, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); FONT_WIDTH 333 modules/games/gui_reversi.c draw_ellipse(x+FONT_WIDTH*1.5+(cell_size>>1), y+FONT_HEIGHT*3+(cell_size>>1), FONT_WIDTH 336 modules/games/gui_reversi.c draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*6, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); FONT_WIDTH 338 modules/games/gui_reversi.c draw_ellipse(x+FONT_WIDTH*1.5+(cell_size>>1), y+FONT_HEIGHT*7+(cell_size>>1), FONT_WIDTH 303 modules/games/gui_snake.c draw_string(camera_screen.disp_width / 2 - strlen(str_buf)*FONT_WIDTH/2,camera_screen.height/2-FONT_HEIGHT/2,str_buf, MAKE_COLOR(COLOR_GREY, COLOR_BLUE)); FONT_WIDTH 452 modules/games/gui_snake.c draw_string(camera_screen.disp_width/2 - strlen(str_buf)*FONT_WIDTH/2, camera_screen.height-FONT_HEIGHT-4, str_buf, MAKE_COLOR(COLOR_GREY, COLOR_BLUE)); FONT_WIDTH 457 modules/games/gui_sokoban.c str, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, camera_screen.disp_width-FONT_WIDTH, TEXT_RIGHT); FONT_WIDTH 158 modules/games/gui_sudoku.c draw_string(xPadStart+padLineDistance*x+(padLineDistance-FONT_WIDTH)/2, yPadStart+padLineDistance*y+(padLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, COLOR_BLACK)); FONT_WIDTH 161 modules/games/gui_sudoku.c draw_string(xPadStart+padLineDistance+(padLineDistance-FONT_WIDTH)/2, yPadStart+padLineDistance*(-1)+(padLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, COLOR_BLACK)); FONT_WIDTH 241 modules/games/gui_sudoku.c draw_string(xFieldBorder+fieldLineDistance*xPos+(fieldLineDistance-FONT_WIDTH)/2, yFieldBorder+fieldLineDistance*yPos+(fieldLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(MARKER_COLOR, COLOR_WHITE)); FONT_WIDTH 252 modules/games/gui_sudoku.c draw_string(xFieldBorder+fieldLineDistance*x+(fieldLineDistance-FONT_WIDTH)/2, yFieldBorder+fieldLineDistance*y+(fieldLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, COLOR_BLACK)); FONT_WIDTH 253 modules/games/gui_sudoku.c else draw_string(xFieldBorder+fieldLineDistance*x+(fieldLineDistance-FONT_WIDTH)/2, yFieldBorder+fieldLineDistance*y+(fieldLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, MARKER_COLOR)); FONT_WIDTH 989 modules/games/gui_sudoku.c xMenuPos = camera_screen.disp_right - FONT_WIDTH*15 + 1; FONT_WIDTH 241 modules/games/gui_tetris.c int tx = camera_screen.disp_right - 22 * FONT_WIDTH; FONT_WIDTH 15 modules/gui_bench.c #define draw_txt_string(x,y,s,c) draw_string((x)*FONT_WIDTH,(y)*FONT_HEIGHT,s,c) FONT_WIDTH 16 modules/gui_bench.c #define draw_txt_stringnonalign(x,y,s,c) draw_string((x)*FONT_WIDTH+1,(y)*FONT_HEIGHT,s,c) FONT_WIDTH 140 modules/gui_bench.c int s=(ss==0)?0:FONT_WIDTH*FONT_HEIGHT*value/ss; FONT_WIDTH 141 modules/gui_bench.c int sn=(ss==0)?0:FONT_WIDTH*FONT_HEIGHT*valuen/ss; FONT_WIDTH 70 modules/gui_calendar.c draw_string(camera_screen.disp_left+FONT_WIDTH, 0, lang_str(LANG_CALENDAR_TODAY), MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 75 modules/gui_calendar.c draw_rectangle(cal_x+cal_w-FONT_WIDTH*4*2, cal_y+FONT_HEIGHT+8+1, cal_x+cal_w-1, cal_y+cal_h-1, MAKE_COLOR(BG_COLOR(WEEKEND_COLOR), BG_COLOR(WEEKEND_COLOR)), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 76 modules/gui_calendar.c for (x=cal_x+FONT_WIDTH/2, i=0; i<7; x+=FONT_WIDTH*4, ++i) { FONT_WIDTH 87 modules/gui_calendar.c cal_w = FONT_WIDTH*4*7; FONT_WIDTH 141 modules/gui_calendar.c draw_string(camera_screen.disp_left+FONT_WIDTH*8, 0, str, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 147 modules/gui_calendar.c x = cal_x + (cal_w-FONT_WIDTH*2-FONT_WIDTH*4-FONT_WIDTH*2-i*FONT_WIDTH)/2; FONT_WIDTH 149 modules/gui_calendar.c draw_rectangle(cal_x+FONT_WIDTH, y, cal_x+cal_w-FONT_WIDTH-FONT_WIDTH*4-FONT_WIDTH, y+FONT_HEIGHT, MAKE_COLOR(BG_COLOR(TITLE_COLOR), BG_COLOR(TITLE_COLOR)), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 150 modules/gui_calendar.c draw_string(x+FONT_WIDTH, y, lang_str(months[cal_month]), TITLE_COLOR); FONT_WIDTH 153 modules/gui_calendar.c draw_string(cal_x+cal_w-FONT_WIDTH*2-FONT_WIDTH*4, y, str, TITLE_COLOR); FONT_WIDTH 162 modules/gui_calendar.c draw_string(cal_x+x*FONT_WIDTH*4, y, " ", (x<5)?CALENDAR_COLOR:WEEKEND_COLOR); FONT_WIDTH 167 modules/gui_calendar.c draw_string(cal_x+x*FONT_WIDTH*4, y, str, (x<5)?CALENDAR_COLOR:WEEKEND_COLOR); FONT_WIDTH 176 modules/gui_calendar.c draw_string(cal_x+x*FONT_WIDTH*4, y, " ", (x<5)?CALENDAR_COLOR:WEEKEND_COLOR); FONT_WIDTH 49 modules/gui_debug.c draw_string(10*FONT_WIDTH, y, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 52 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 55 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+2*FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 65 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+3*FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 69 modules/gui_debug.c draw_string(10*FONT_WIDTH, y, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 70 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+FONT_HEIGHT, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 71 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+2*FONT_HEIGHT, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 72 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+3*FONT_HEIGHT, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 81 modules/gui_debug.c draw_string(1*FONT_WIDTH, 0*FONT_HEIGHT, "Address:", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 82 modules/gui_debug.c draw_string(22*FONT_WIDTH,0*FONT_HEIGHT, "Incr:", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 83 modules/gui_debug.c draw_string(39*FONT_WIDTH,0*FONT_HEIGHT, "Auto:", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 84 modules/gui_debug.c draw_string(1*FONT_WIDTH, 1*FONT_HEIGHT, "Values:", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 85 modules/gui_debug.c draw_string(2*FONT_WIDTH, 2*FONT_HEIGHT, "DWORD :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 86 modules/gui_debug.c draw_string(2*FONT_WIDTH, 3*FONT_HEIGHT, "WORD :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 87 modules/gui_debug.c draw_string(2*FONT_WIDTH, 4*FONT_HEIGHT, "BYTE :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 88 modules/gui_debug.c draw_string(2*FONT_WIDTH, 5*FONT_HEIGHT, "STRING :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 89 modules/gui_debug.c draw_string(1*FONT_WIDTH, 7*FONT_HEIGHT, "Dereferencing:", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 90 modules/gui_debug.c draw_string(2*FONT_WIDTH, 8*FONT_HEIGHT, "DWORD :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 91 modules/gui_debug.c draw_string(2*FONT_WIDTH, 9*FONT_HEIGHT, "WORD :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 92 modules/gui_debug.c draw_string(2*FONT_WIDTH, 10*FONT_HEIGHT,"BYTE :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 93 modules/gui_debug.c draw_string(2*FONT_WIDTH, 11*FONT_HEIGHT,"STRING :", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 99 modules/gui_debug.c draw_string(10*FONT_WIDTH, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 101 modules/gui_debug.c draw_string(28*FONT_WIDTH, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 103 modules/gui_debug.c draw_string(44*FONT_WIDTH, 0, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 45 modules/gui_fselect.c #define NAME_FONT_SIZE NAME_SIZE * FONT_WIDTH FONT_WIDTH 46 modules/gui_fselect.c #define EXTE_FONT_SIZE EXTE_SIZE * FONT_WIDTH FONT_WIDTH 47 modules/gui_fselect.c #define SIZE_FONT_SIZE SIZE_SIZE * FONT_WIDTH FONT_WIDTH 48 modules/gui_fselect.c #define TIME_FONT_SIZE TIME_SIZE * FONT_WIDTH FONT_WIDTH 703 modules/gui_fselect.c main_w = SPACING + NAME_FONT_SIZE + FONT_WIDTH + SIZE_FONT_SIZE + FONT_WIDTH + TIME_FONT_SIZE + SPACING + SCROLLBAR; FONT_WIDTH 920 modules/gui_fselect.c draw_string(main_x+main_w-strlen(dbuf)*FONT_WIDTH-BORDER, foot_y, dbuf, MAKE_COLOR(COLOR_GREY, COLOR_WHITE)); // free space FONT_WIDTH 49 modules/gui_hexbox.c w = ( btl + 4) * FONT_WIDTH; FONT_WIDTH 51 modules/gui_hexbox.c if (w > camera_screen.width - 4 * FONT_WIDTH) { FONT_WIDTH 52 modules/gui_hexbox.c w = camera_screen.width - 4 * FONT_WIDTH; FONT_WIDTH 53 modules/gui_hexbox.c box_title[(w/FONT_WIDTH - 4 < 63)?w/FONT_WIDTH - 4:63] = 0; // shorten the title FONT_WIDTH 59 modules/gui_hexbox.c offs_title = ((camera_screen.width - strlen(box_title)*FONT_WIDTH)>>1); FONT_WIDTH 60 modules/gui_hexbox.c offs_num = ((camera_screen.width - (10+6+1)*FONT_WIDTH)>>1); // "0x12345678 4095M+" FONT_WIDTH 112 modules/gui_hexbox.c draw_char(posx+digit*FONT_WIDTH, posy, buf[digit], MAKE_COLOR(COLOR_RED, COLOR_WHITE)); FONT_WIDTH 142 modules/gui_hexbox.c draw_string(x+FONT_WIDTH*2, y+FONT_HEIGHT*4, box_helpline, MAKE_COLOR(COLOR_GREY, COLOR_WHITE)); FONT_WIDTH 147 modules/gui_hexbox.c gui_hexbox_draw_hint(*num_to_edit, offs_num + 11*FONT_WIDTH, y + FONT_HEIGHT * 2); FONT_WIDTH 86 modules/gui_mpopup.c draw_string_justified(mpopup_actions_x, y, lang_str(actions[mpopup_actions[i]].text), cl, FONT_WIDTH, mpopup_actions_w*FONT_WIDTH+1, TEXT_LEFT|TEXT_FILL); FONT_WIDTH 106 modules/gui_mpopup.c x = (camera_screen.width - w*FONT_WIDTH) / 2; FONT_WIDTH 108 modules/gui_mpopup.c draw_rectangle(x-4, y-4, x+w*FONT_WIDTH+4, y+h*FONT_HEIGHT+3, FONT_WIDTH 166 modules/gui_mpopup.c if ((sx >= mpopup_actions_x) && (sx <= mpopup_actions_x+mpopup_actions_w*FONT_WIDTH) && (sy >= mpopup_actions_y) && (sy <= mpopup_actions_y+mpopup_actions_num*FONT_HEIGHT)) FONT_WIDTH 19 modules/gui_osd_edit.c #define SCX(x) (FONT_WIDTH*(x)/FONT_REAL_WIDTH) FONT_WIDTH 30 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_CLOCK, &conf.clock_pos, {5*FONT_WIDTH, FONT_HEIGHT}, &conf.clock_scale }, FONT_WIDTH 31 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_TEMP, &conf.temp_pos, {9*FONT_WIDTH, FONT_HEIGHT}, &conf.temp_scale }, FONT_WIDTH 32 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_RAW, &conf.mode_raw_pos, {7*FONT_WIDTH, FONT_HEIGHT}, &conf.mode_raw_scale }, FONT_WIDTH 34 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_BAT_TEXT, &conf.batt_txt_pos, {5*FONT_WIDTH, FONT_HEIGHT}, &conf.batt_txt_scale }, FONT_WIDTH 36 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_SPACE_TEXT, &conf.space_txt_pos, {5*FONT_WIDTH, FONT_HEIGHT}, &conf.space_txt_scale }, FONT_WIDTH 40 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_EV, &conf.mode_ev_pos, {12*FONT_WIDTH, FONT_HEIGHT}, &conf.mode_ev_scale }, FONT_WIDTH 42 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_VIDEO, &conf.mode_video_pos, {9*FONT_WIDTH, 4*FONT_HEIGHT}, &conf.mode_video_scale }, FONT_WIDTH 43 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_DOF_CALC, &conf.dof_pos, {23*FONT_WIDTH, 2*FONT_HEIGHT}, &conf.dof_scale }, FONT_WIDTH 45 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_STATES, &conf.mode_state_pos, {12*FONT_WIDTH, 4*FONT_HEIGHT}, &conf.mode_state_scale }, FONT_WIDTH 46 modules/gui_osd_edit.c {LANG_OSD_LAYOUT_EDITOR_MISC, &conf.values_pos, {9*FONT_WIDTH, 9*FONT_HEIGHT}, &conf.values_scale }, FONT_WIDTH 83 modules/gui_osd_edit.c draw_string(0, (osd[curr_item].pos->x<strlen(osd_buf)*FONT_WIDTH+4 && osd[curr_item].pos->y<FONT_HEIGHT+4)?camera_screen.height-FONT_HEIGHT:0, FONT_WIDTH 156 modules/gui_palette.c draw_string(xr-22*FONT_WIDTH, 0, "Use \x1b\x1a to change page", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 280 modules/gui_palette.c draw_string(xr-29*FONT_WIDTH, 0, " Use \x18\x19\x1b\x1a to change color ", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 48 modules/gui_read.c draw_string(camera_screen.disp_right-11*FONT_WIDTH, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 57 modules/gui_read.c draw_string(camera_screen.disp_right-17*FONT_WIDTH, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 62 modules/gui_read.c draw_char(camera_screen.disp_right-FONT_WIDTH, 0, FONT_WIDTH 227 modules/gui_read.c draw_string_justified(camera_screen.disp_left, 0, buffer, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, 20*FONT_WIDTH, TEXT_LEFT|TEXT_FILL); //title infoline FONT_WIDTH 239 modules/gui_read.c draw_rectangle((x+w)*FONT_WIDTH+2, y*FONT_HEIGHT+1, FONT_WIDTH 240 modules/gui_read.c (x+w)*FONT_WIDTH+6, (y+h)*FONT_HEIGHT-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 40 modules/gui_tbox.c #define BUTTON_AREA_WIDTH (2*BUTTON_SIZE*FONT_WIDTH+BUTTON_SEP) FONT_WIDTH 41 modules/gui_tbox.c #define BUTTON_CHAR_WIDTH ((BUTTON_AREA_WIDTH + BUTTON_SEP) / FONT_WIDTH + 1) FONT_WIDTH 176 modules/gui_tbox.c draw_button(tbox_buttons_x + (BUTTON_SIZE*FONT_WIDTH+BUTTON_SEP), tbox_buttons_y+FONT_HEIGHT, BUTTON_SIZE, LANG_MBOX_BTN_CANCEL, (tbox_button_active == 1)); FONT_WIDTH 187 modules/gui_tbox.c key_offset_x = (camera_screen.width - tbox_width*FONT_WIDTH) >> 1; FONT_WIDTH 189 modules/gui_tbox.c coord x = (camera_screen.width - tbox_width * FONT_WIDTH) >> 1; FONT_WIDTH 191 modules/gui_tbox.c draw_rectangle(x-4, y-4, x+tbox_width*FONT_WIDTH+4, y+(tbox_height+6)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+11, FONT_WIDTH 193 modules/gui_tbox.c draw_rectangle(x-2, y-2, x+tbox_width*FONT_WIDTH+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); //title FONT_WIDTH 201 modules/gui_tbox.c text_offset_x = x+((tbox_width-fldlen)>>1)*FONT_WIDTH; FONT_WIDTH 204 modules/gui_tbox.c tbox_buttons_x = x+((tbox_width*FONT_WIDTH-BUTTON_AREA_WIDTH)>>1); FONT_WIDTH 212 modules/gui_tbox.c draw_string_justified(text_offset_x, text_offset_y, text+offset, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, fldlen*FONT_WIDTH, TEXT_LEFT|TEXT_FILL); FONT_WIDTH 215 modules/gui_tbox.c draw_char(text_offset_x+fldlen*FONT_WIDTH, text_offset_y, ((strlen(text)-offset)>fldlen) ? '\20' : ' ', MAKE_COLOR(COLOR_GREY, COLOR_RED)); FONT_WIDTH 216 modules/gui_tbox.c draw_char(text_offset_x-FONT_WIDTH, text_offset_y, (offset>0) ? '\21' : ' ', MAKE_COLOR(COLOR_GREY, COLOR_RED)); FONT_WIDTH 222 modules/gui_tbox.c draw_rectangle(key_offset_x+((tbox_width-MAX_MSG_LENGTH)>>1)*FONT_WIDTH, tbox_buttons_y, FONT_WIDTH 223 modules/gui_tbox.c key_offset_x+((tbox_width+MAX_MSG_LENGTH)>>1)*FONT_WIDTH, tbox_buttons_y+3*FONT_HEIGHT, MAKE_COLOR(COLOR_GREY,COLOR_GREY), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 230 modules/gui_tbox.c draw_rectangle(key_offset_x, tbox_buttons_y, key_offset_x+(tbox_width-1)*FONT_WIDTH, tbox_buttons_y+3*FONT_HEIGHT, MAKE_COLOR(COLOR_GREY, COLOR_GREY), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 242 modules/gui_tbox.c int x = key_offset_x + 4*FONT_WIDTH; FONT_WIDTH 246 modules/gui_tbox.c draw_char(x+(curchar*FONT_WIDTH), y, tstr[curchar], MAKE_COLOR(COLOR_RED, COLOR_WHITE)); // Selected char cursor FONT_WIDTH 257 modules/gui_tbox.c key_offset_x+tbox_width*FONT_WIDTH-3, tbox_buttons_y+3*FONT_HEIGHT, MAKE_COLOR(COLOR_GREY, COLOR_GREY), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 263 modules/gui_tbox.c draw_line(text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+1, text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+FONT_HEIGHT-3, cursor_to_draw ? COLOR_YELLOW : COLOR_GREY); FONT_WIDTH 269 modules/gui_tbox.c draw_line(text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+1, text_offset_x+(1+cursor-offset)*FONT_WIDTH, text_offset_y+FONT_HEIGHT-3, COLOR_BLACK); FONT_WIDTH 489 modules/histogram.c draw_string(conf.histo_pos.x+HISTO_WIDTH-FONT_WIDTH*3, conf.histo_pos.y-FONT_HEIGHT, "EXP", hc); FONT_WIDTH 498 modules/histogram.c draw_rectangle(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, conf.histo_pos.x+8*FONT_WIDTH, conf.histo_pos.y-1, MAKE_COLOR(COLOR_TRANSPARENT, COLOR_TRANSPARENT), RECT_BORDER0|DRAW_FILLED); FONT_WIDTH 144 modules/module_inspector.c draw_string(camera_screen.disp_left+5*FONT_WIDTH, 0, "*** Module Inspector ***", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 145 modules/module_inspector.c draw_string(camera_screen.disp_left+FONT_WIDTH, FONT_HEIGHT, "SET-redraw, DISP-unload_all, MENU-exit", MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); FONT_WIDTH 255 platform/ixus310_elph500hs/kbd.c xo = (58 - strlen(buf)*FONT_WIDTH*sc) / 2; FONT_WIDTH 261 platform/ixus310_elph500hs/kbd.c xo = (58 - strlen(keymap[i].nm2)*FONT_WIDTH*sc) / 2; FONT_WIDTH 264 platform/ixus310_elph500hs/kbd.c xo = (58 - strlen(keymap[i].nm)*FONT_WIDTH*sc) / 2;