cl 1398 core/conf.c *((confColor*)osd_conf_info[i].var) = osd_conf_info[i].cl; cl 266 core/gui.c twoColors cl; cl 268 core/gui.c cl=MAKE_COLOR(COLOR_RED, COLOR_WHITE); cl 273 core/gui.c cl=MAKE_COLOR(COLOR_TRANSPARENT, COLOR_WHITE); cl 281 core/gui.c draw_text_justified(x, y, exp_text, cl, EXP_TEXT_WIDTH, camera_info.state.gui_mode_alt ? EXP_TEXT_HEIGHT : 1, TEXT_CENTER|TEXT_FILL); cl 287 core/gui.c twoColors cl = MAKE_COLOR(COLOR_RED, COLOR_WHITE); cl 293 core/gui.c draw_string(x-((strlen(under_dev_text)*FONT_WIDTH)>>1), y, under_dev_text, cl); cl 2334 core/gui.c twoColors cl = MAKE_COLOR(COLOR_RED, COLOR_WHITE); cl 2354 core/gui.c draw_string(x+((logo_text_width-strlen(text[i])*FONT_WIDTH)>>1), y+i*FONT_HEIGHT+4, text[i], cl); cl 72 core/gui_batt.c twoColors cl = user_color((perc<=20) ? conf.osd_color_warn : conf.osd_color); cl 75 core/gui_batt.c draw_osd_string(conf.batt_txt_pos, 0, 0, osd_buf, cl, conf.batt_txt_scale); cl 56 core/gui_draw.c void (*draw_pixel_proc)(unsigned int offset, color cl); cl 57 core/gui_draw.c void (*draw_pixel_proc_norm)(unsigned int offset, color cl); cl 61 core/gui_draw.c static void draw_pixel_std(unsigned int offset, color cl) cl 66 core/gui_draw.c bitmap_buffer[active_bitmap_buffer][offset] = cl; cl 68 core/gui_draw.c frame_buffer[0][offset] = frame_buffer[1][offset] = cl; cl 75 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,y,o); cl 78 core/gui_draw.c CALC_YUV_CHROMA_FOR_COLOR(cl,u,v); cl 166 core/gui_draw.c unsigned int color_to_rawpx(color cl, unsigned int *op) cl 169 core/gui_draw.c CALC_YUV_CHROMA_FOR_COLOR(cl,u,v); cl 170 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,y,o); cl 207 core/gui_draw.c unsigned int color_to_rawpx(__attribute__ ((unused))color cl, __attribute__ ((unused))unsigned int *op) { return 0; } cl 215 core/gui_draw.c void draw_pixel_proc_rotated(unsigned int offset, color cl) cl 217 core/gui_draw.c draw_pixel_proc_norm(rotate_base - offset, cl); cl 220 core/gui_draw.c void draw_set_draw_proc(void (*pixel_proc)(unsigned int offset, color cl)) cl 259 core/gui_draw.c color cl; cl 260 core/gui_draw.c cl = BG_COLOR(tc); cl 261 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,yuvclr[1],yuvclr[3]); cl 262 core/gui_draw.c CALC_YUV_CHROMA_FOR_COLOR(cl,yuvclr[0],yuvclr[2]); cl 263 core/gui_draw.c cl = FG_COLOR(tc); cl 264 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,yuvclr[5],yuvclr[7]); cl 265 core/gui_draw.c CALC_YUV_CHROMA_FOR_COLOR(cl,yuvclr[4],yuvclr[6]); cl 564 core/gui_draw.c void draw_pixel(coord x, coord y, color cl) cl 571 core/gui_draw.c draw_pixel_proc(offset, cl); cl 573 core/gui_draw.c draw_pixel_proc(offset+1, cl); // Draw second pixel if screen scaling is needed cl 581 core/gui_draw.c void draw_or_erase_edge_pixel(coord px, coord py, color cl, int is_draw) cl 595 core/gui_draw.c if (bitmap_buffer[active_bitmap_buffer][offset] != cl) return; cl 597 core/gui_draw.c if (frame_buffer[0][offset] != cl) return; cl 599 core/gui_draw.c cl = 0; // Transparent cl 603 core/gui_draw.c draw_pixel_proc_norm(offset, cl); cl 605 core/gui_draw.c draw_pixel_proc_norm(offset+1, cl); // Draw second pixel if screen scaling is needed cl 618 core/gui_draw.c cl = 0; // Transparent cl 623 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,y,o); cl 626 core/gui_draw.c CALC_YUV_CHROMA_FOR_COLOR(cl,u,v); cl 699 core/gui_draw.c void draw_line(coord x1, coord y1, coord x2, coord y2, color cl) cl 720 core/gui_draw.c if (steep) draw_pixel(y, x, cl); cl 721 core/gui_draw.c else draw_pixel(x, y, cl); cl 733 core/gui_draw.c void draw_line_x2(coord x1, coord y1, coord x2, coord y2, color cl) cl 755 core/gui_draw.c draw_pixel(y, x, cl); cl 756 core/gui_draw.c draw_pixel(y+1, x, cl); cl 757 core/gui_draw.c draw_pixel(y, x+1, cl); cl 758 core/gui_draw.c draw_pixel(y+1, x+1, cl); cl 760 core/gui_draw.c draw_pixel(x, y, cl); cl 761 core/gui_draw.c draw_pixel(x+1, y, cl); cl 762 core/gui_draw.c draw_pixel(x, y+1, cl); cl 763 core/gui_draw.c draw_pixel(x+1, y+1, cl); cl 776 core/gui_draw.c void draw_hline(coord x, coord y, int len, color cl) cl 794 core/gui_draw.c draw_pixel_proc(offset, cl); cl 797 core/gui_draw.c void draw_vline(coord x, coord y, int len, color cl) cl 803 core/gui_draw.c draw_pixel(x, y, cl); cl 809 core/gui_draw.c void draw_rectangle(coord x1, coord y1, coord x2, coord y2, twoColors cl, int flags) cl 841 core/gui_draw.c draw_vline(x1, y1 + round * 2, y2 - y1 - round * 4 + 1, FG_COLOR(cl)); cl 842 core/gui_draw.c draw_vline(x2, y1 + round * 2, y2 - y1 - round * 4 + 1, FG_COLOR(cl)); cl 843 core/gui_draw.c draw_hline(x1 + 1 + round, y1, x2 - x1 - round * 2 - 1, FG_COLOR(cl)); cl 844 core/gui_draw.c draw_hline(x1 + 1 + round, y2, x2 - x1 - round * 2 - 1, FG_COLOR(cl)); cl 863 core/gui_draw.c draw_hline(x1, y, x2 - x1 + 1, BG_COLOR(cl)); cl 890 core/gui_draw.c void draw_char(coord x, coord y, const char ch, twoColors cl) cl 899 core/gui_draw.c draw_hline(x, y+i, FONT_WIDTH, BG_COLOR(cl)); cl 917 core/gui_draw.c draw_pixel(x+ii, y+i, (dsym & (0x80>>ii))? FG_COLOR(cl) : BG_COLOR(cl)); cl 924 core/gui_draw.c draw_pixel(x+ii, y+i, (dsym & (0x80>>ii))? FG_COLOR(cl) : BG_COLOR(cl)); cl 933 core/gui_draw.c draw_hline(x, y+i, FONT_WIDTH, BG_COLOR(cl)); cl 939 core/gui_draw.c void draw_char(coord x, coord y, const char ch, twoColors cl) cl 949 core/gui_draw.c draw_pixel_simple_start(cl); cl 1024 core/gui_draw.c void draw_char_unscaled(coord x, coord y, const char ch, twoColors cl) cl 1034 core/gui_draw.c draw_pixel_simple_start(cl); cl 1093 core/gui_draw.c void draw_char_scaled(coord x, coord y, const char ch, twoColors cl, int xsize, int ysize) cl 1097 core/gui_draw.c twoColors clf = MAKE_COLOR(FG_COLOR(cl),FG_COLOR(cl)); cl 1098 core/gui_draw.c twoColors clb = MAKE_COLOR(BG_COLOR(cl),BG_COLOR(cl)); cl 1153 core/gui_draw.c void draw_char_scaled(coord x, coord y, const char ch, twoColors cl, int xsize, int ysize) cl 1157 core/gui_draw.c twoColors clf = MAKE_COLOR(FG_COLOR(cl),FG_COLOR(cl)); cl 1158 core/gui_draw.c twoColors clb = MAKE_COLOR(BG_COLOR(cl),BG_COLOR(cl)); cl 1231 core/gui_draw.c int draw_string_clipped(coord x, coord y, const char *s, twoColors cl, int max_width) cl 1235 core/gui_draw.c draw_char(x, y, *s, cl); cl 1241 core/gui_draw.c draw_char(x-FONT_WIDTH,y, '>', cl); cl 1249 core/gui_draw.c int draw_string(coord x, coord y, const char *s, twoColors cl) cl 1251 core/gui_draw.c return draw_string_clipped(x, y, s, cl, camera_screen.width); cl 1259 core/gui_draw.c int draw_string_justified(coord x, coord y, const char *s, twoColors cl, int xo, int max_width, int justification) cl 1283 core/gui_draw.c draw_rectangle(x, y, x+xo-1, y+FONT_HEIGHT-1, cl, RECT_BORDER0|DRAW_FILLED); cl 1286 core/gui_draw.c l = draw_string_clipped(x+xo, y, s, cl, max_width - xo) - x; cl 1290 core/gui_draw.c draw_rectangle(x+l, y, x+max_width-1, y+FONT_HEIGHT-1, cl, RECT_BORDER0|DRAW_FILLED); cl 1332 core/gui_draw.c int draw_text_justified(coord x, coord y, const char *s, twoColors cl, int max_chars, int max_lines, int justification) cl 1340 core/gui_draw.c rx = draw_string_justified(x, y, s, cl, 0, max_chars*FONT_WIDTH, justification); cl 1351 core/gui_draw.c void draw_string_scaled(coord x, coord y, const char *s, twoColors cl, int xsize, int ysize) cl 1355 core/gui_draw.c draw_char_scaled(x, y, *s, cl, xsize, ysize); cl 1360 core/gui_draw.c draw_char_scaled(x-FONT_WIDTH*xsize,y, '>', cl, xsize, ysize); cl 1368 core/gui_draw.c void draw_string_scaled(coord x, coord y, const char *s, twoColors cl, int xsize, int ysize) cl 1374 core/gui_draw.c draw_char_unscaled(x, y, *s, cl); cl 1379 core/gui_draw.c draw_char_unscaled(x-FONT_REAL_WIDTH,y, '>', cl); cl 1388 core/gui_draw.c draw_char_scaled(x, y, *s, cl, xsize, ysize); cl 1393 core/gui_draw.c draw_char_scaled(x-FONT_WIDTH*xsize,y, '>', cl, xsize, ysize); cl 1433 core/gui_draw.c void draw_txt_string(coord col, coord row, const char *str, twoColors cl) cl 1435 core/gui_draw.c draw_string(col*FONT_WIDTH, row*FONT_HEIGHT, str, cl); cl 1468 core/gui_draw.c void draw_ellipse(coord CX, coord CY, unsigned int XRadius, unsigned int YRadius, color cl, int flags) cl 1489 core/gui_draw.c draw_hline(CX-X,CY-Y,X*2+1,cl); cl 1490 core/gui_draw.c draw_hline(CX-X,CY+Y,X*2+1,cl); cl 1494 core/gui_draw.c draw_pixel(CX-X,CY-Y,cl); cl 1495 core/gui_draw.c draw_pixel(CX-X,CY+Y,cl); cl 1496 core/gui_draw.c draw_pixel(CX+X,CY-Y,cl); cl 1497 core/gui_draw.c draw_pixel(CX+X,CY+Y,cl); cl 1526 core/gui_draw.c draw_hline(CX-X,CY-Y,X*2+1,cl); cl 1527 core/gui_draw.c draw_hline(CX-X,CY+Y,X*2+1,cl); cl 1533 core/gui_draw.c draw_pixel(CX-X,CY-Y,cl); cl 1534 core/gui_draw.c draw_pixel(CX-X,CY+Y,cl); cl 1535 core/gui_draw.c draw_pixel(CX+X,CY-Y,cl); cl 1536 core/gui_draw.c draw_pixel(CX+X,CY+Y,cl); cl 1556 core/gui_draw.c twoColors cl = MAKE_COLOR((active) ? COLOR_RED : COLOR_BLACK, COLOR_WHITE); cl 1559 core/gui_draw.c draw_rectangle(x-2, y-2, x+w+2, y+FONT_HEIGHT+2, cl, RECT_BORDER1|DRAW_FILLED|RECT_SHADOW1); // main box cl 1560 core/gui_draw.c draw_string(x+((w-(strlen(lang_str(str_id))*FONT_WIDTH))>>1), y, lang_str(str_id), cl); cl 1663 core/gui_draw.c color get_script_color(int cl) cl 1665 core/gui_draw.c if (cl < 256) cl 1666 core/gui_draw.c return cl; cl 1668 core/gui_draw.c return chdk_colors[cl-256]; cl 101 core/gui_draw.h extern void draw_set_draw_proc(void (*pixel_proc)(unsigned int offset, color cl)); cl 108 core/gui_draw.h extern void draw_pixel(coord x, coord y, color cl); cl 109 core/gui_draw.h extern void draw_or_erase_edge_pixel(coord x, coord y, color cl, int is_draw); cl 113 core/gui_draw.h extern unsigned int color_to_rawpx(color cl, unsigned int *op); cl 115 core/gui_draw.h extern void draw_line(coord x1, coord y1, coord x2, coord y2, color cl); cl 116 core/gui_draw.h extern void draw_hline(coord x, coord y, int len, color cl); cl 117 core/gui_draw.h extern void draw_vline(coord x, coord y, int len, color cl); cl 120 core/gui_draw.h extern void draw_rectangle(coord x1, coord y1, coord x2, coord y2, twoColors cl, int flags); cl 121 core/gui_draw.h extern void draw_ellipse(coord xc, coord yc, unsigned int a, unsigned int b, color cl, int flags); cl 125 core/gui_draw.h extern void draw_char(coord x, coord y, const char ch, twoColors cl); cl 126 core/gui_draw.h extern int draw_string_clipped(coord x, coord y, const char *s, twoColors cl, int max_width); cl 127 core/gui_draw.h extern int draw_string(coord x, coord y, const char *s, twoColors cl); cl 128 core/gui_draw.h extern int draw_string_justified(coord x, coord y, const char *s, twoColors cl, int xo, int max_width, int justification); cl 129 core/gui_draw.h extern int draw_text_justified(coord x, coord y, const char *s, twoColors cl, int max_chars, int max_lines, int justification); cl 130 core/gui_draw.h extern void draw_string_scaled(coord x, coord y, const char *s, twoColors cl, int xsize, int ysize); cl 134 core/gui_draw.h extern void draw_txt_string(coord col, coord row, const char *str, twoColors cl); cl 140 core/gui_draw.h extern color get_script_color(int cl); cl 771 core/gui_menu.c static twoColors cl, cl_symbol; cl 787 core/gui_menu.c xx += rbf_draw_char(xx, yy, ' ', cl); cl 808 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, w-len_space-len_space-len_br1-len_str-len_br2-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); cl 809 core/gui_menu.c xx += rbf_draw_string(xx, yy, " [", cl); cl 819 core/gui_menu.c xx += rbf_draw_string_right_len(xx, yy, len_str, str, cl); cl 821 core/gui_menu.c rbf_draw_string(xx, yy, "] ", cl); cl 828 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, w-len_space-len_space-symbol_width, str, cl); cl 831 core/gui_menu.c rbf_draw_char(xx, yy, ' ', cl); cl 890 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, wid, lang_str(text), cl); cl 891 core/gui_menu.c xx += rbf_draw_string(xx, yy, " [", cl); cl 893 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, len_space*3, ((const char* (*)(int change, int arg))(c[1].value))(0, c[1].arg), cl); cl 895 core/gui_menu.c xx += rbf_draw_string_len(xx, yy, len_bool, (*(c[1].value))?"\x95":"", cl); cl 896 core/gui_menu.c xx += rbf_draw_string(xx, yy, "][", cl); cl 951 core/gui_menu.c xx += rbf_draw_string_right_len(xx, yy, len_enum, ch, cl); cl 953 core/gui_menu.c rbf_draw_string(xx, yy, "] ", cl); cl 959 core/gui_menu.c twoColors save = cl; cl 960 core/gui_menu.c cl = MAKE_COLOR(BG_COLOR(cl), c); cl 962 core/gui_menu.c cl = save; cl 982 core/gui_menu.c cl = user_color((gui_menu_curr_item==imenu) ? conf.menu_cursor_color : conf.menu_color); cl 993 core/gui_menu.c cl_symbol = (gui_menu_curr_item==imenu) ? MAKE_COLOR(BG_COLOR(cl),FG_COLOR(user_color(conf.menu_symbol_color))) : user_color(conf.menu_symbol_color); //color 8Bit=Hintergrund 8Bit=Vordergrund cl 1029 core/gui_menu.c rbf_draw_char(x, yy, ' ', cl); cl 1041 core/gui_menu.c draw_rectangle(x+len_space, yy, xx-1, yy+rbf_font_height()/2-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 1042 core/gui_menu.c draw_line(x+len_space, yy+rbf_font_height()/2, xx-1, yy+rbf_font_height()/2, FG_COLOR(cl)); cl 1043 core/gui_menu.c draw_rectangle(x+len_space, yy+rbf_font_height()/2+1, xx-1, yy+rbf_font_height()-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 1050 core/gui_menu.c if (j) xx += rbf_draw_clipped_string(xx, yy, tbuf, cl, 0, w); cl 1054 core/gui_menu.c draw_rectangle(xx, yy, x+w-len_space-1, yy+rbf_font_height()/2-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 1055 core/gui_menu.c draw_line(xx, yy+rbf_font_height()/2, x+w-1-len_space, yy+rbf_font_height()/2, FG_COLOR(cl)); cl 1056 core/gui_menu.c draw_rectangle(xx, yy+rbf_font_height()/2+1, x+w-len_space-1, yy+rbf_font_height()-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 1059 core/gui_menu.c rbf_draw_char(x+w-len_space, yy, ' ', cl); cl 1064 core/gui_menu.c xx+=rbf_draw_string_len(xx, yy, w-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); cl 1072 core/gui_menu.c xx+=rbf_draw_string_len(xx, yy, w-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); cl 442 core/gui_osd.c void gui_osd_draw_clock(int x, int y, twoColors cl, int is_osd_edit) cl 452 core/gui_osd.c if ((FG_COLOR(cl) == 0) && (BG_COLOR(cl) == 0)) cl = user_color(conf.osd_color); cl 480 core/gui_osd.c draw_string(x, y, osd_buf, cl); cl 482 core/gui_osd.c draw_osd_string(conf.clock_pos, 0, 0, osd_buf, cl, conf.clock_scale); cl 488 core/gui_osd.c draw_osd_string(conf.clock_pos, w*FONT_WIDTH, 0, osd_buf, cl, conf.clock_scale); cl 25 core/gui_osd.h extern void gui_osd_draw_clock(int x, int y, twoColors cl, int is_osd_edit); cl 18 core/gui_space.c static twoColors cl; cl 26 core/gui_space.c cl = user_color(conf.space_color); cl 30 core/gui_space.c cl = user_color(conf.osd_color_warn); cl 57 core/gui_space.c draw_rectangle(xx+1, yy+1, xx+width+2, yy+height+2, cl, RECT_BORDER1); // Inner white/red rectangle cl 71 core/gui_space.c else draw_rectangle(xx+x+2, yy+2, xx+width+1, yy+height+1, MAKE_COLOR(FG_COLOR(cl), FG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // If not empty fill 'free' space area cl 85 core/gui_space.c else draw_rectangle(xx+2, yy+y+2, xx+width+1, yy+height+1, MAKE_COLOR(FG_COLOR(cl), FG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // If not empty fill 'free' space area cl 165 core/gui_space.c draw_osd_string(conf.space_txt_pos, 0, 0, osd_buf, cl, conf.space_txt_scale); cl 34 core/gui_usb.c twoColors cl = user_color(conf.osd_color); cl 35 core/gui_usb.c draw_string(conf.usb_info_pos.x, conf.usb_info_pos.y, "<USB>", cl); cl 562 include/conf.h confColor cl; cl 573 include/conf.h #define CONF_INFOC(id, param, type, bc, fc, bt, ft) { id, sizeof( param ), type, ¶m, {cl:{fg:{fc,ft},bg:{bc,bt}}}, 0 } cl 34 include/font.h extern int rbf_draw_char(int x, int y, int ch, twoColors cl); cl 35 include/font.h extern int rbf_draw_symbol(int x, int y, int ch, twoColors cl); cl 36 include/font.h extern int rbf_draw_string(int x, int y, const char *str, twoColors cl); cl 37 include/font.h extern int rbf_draw_clipped_string(int x, int y, const char *str, twoColors cl, int l, int maxlen); cl 38 include/font.h extern int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl); cl 39 include/font.h extern int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl); cl 40 include/font.h extern int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl); cl 311 lib/font/rbf_font.c void font_draw_char(int x, int y, char *cdata, int width, int height, int pixel_width, twoColors cl) { cl 318 lib/font/rbf_font.c draw_pixel(x+xx ,y+yy, (cdata[yy*width/8+xx/8] & (1<<(xx%8))) ? FG_COLOR(cl) : BG_COLOR(cl)); cl 322 lib/font/rbf_font.c int rbf_draw_char(int x, int y, int ch, twoColors cl) { cl 331 lib/font/rbf_font.c draw_char(x,y,ch,cl); cl 333 lib/font/rbf_font.c font_draw_char(x, y, cdata, rbf_font->width, rbf_font->hdr.height, rbf_font->wTable[ch], cl); cl 339 lib/font/rbf_font.c int rbf_draw_symbol(int x, int y, int ch, twoColors cl) { cl 359 lib/font/rbf_font.c draw_rectangle(x, y, x+pixel_width, y+space, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 364 lib/font/rbf_font.c font_draw_char(x, y, cdata, rbf_symbol_font->width, sym_height, pixel_width, cl); cl 368 lib/font/rbf_font.c draw_rectangle(x, y+sym_height, x+pixel_width, y-space+txt_height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 387 lib/font/rbf_font.c int rbf_draw_string(int x, int y, const char *str, twoColors cl) { cl 388 lib/font/rbf_font.c return rbf_draw_string_c(x, y, str, cl, -1, MAKE_COLOR(0,0)); cl 408 lib/font/rbf_font.c int rbf_draw_clipped_string(int x, int y, const char *str, twoColors cl, int l, int maxlen) cl 411 lib/font/rbf_font.c twoColors inv_cl = MAKE_COLOR(FG_COLOR(cl), BG_COLOR(cl)); cl 419 lib/font/rbf_font.c l+=rbf_draw_char(x+l, y, *str++, cl); cl 427 lib/font/rbf_font.c int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl) { cl 429 lib/font/rbf_font.c int l = rbf_draw_clipped_string(x, y, str, cl, 0, len); cl 433 lib/font/rbf_font.c draw_rectangle(x+l, y, x+len-1, y+rbf_font->hdr.height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 439 lib/font/rbf_font.c int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl) { cl 445 lib/font/rbf_font.c draw_rectangle(x, y, x+l-1, y+rbf_font->hdr.height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); cl 448 lib/font/rbf_font.c l = rbf_draw_clipped_string(x, y, str, cl, l, len); cl 454 lib/font/rbf_font.c int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl) { cl 476 lib/font/rbf_font.c draw_line(x+i, y+2-i, x+i, bottom, BG_COLOR(cl)); // left side cl 477 lib/font/rbf_font.c draw_line(right-i, y+2-i, right-i, bottom, BG_COLOR(cl)); // right side cl 481 lib/font/rbf_font.c draw_rectangle(x+i, y, x+ll-1, bottom, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // left side cl 482 lib/font/rbf_font.c draw_rectangle(right-lr, y, right-i, bottom, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // right side cl 488 lib/font/rbf_font.c ll += rbf_draw_symbol(x+ll, y, symbol, cl); cl 489 lib/font/rbf_font.c ll += rbf_draw_char(x+ll, y, ' ', cl); cl 493 lib/font/rbf_font.c ll = rbf_draw_clipped_string(x, y, str, cl, ll, len); cl 487 lib/lua/lapi.c Closure *cl; cl 491 lib/lua/lapi.c cl = luaF_newCclosure(L, n, getcurrenv(L)); cl 492 lib/lua/lapi.c cl->c.f = fn; cl 495 lib/lua/lapi.c setobj2n(L, &cl->c.upvalue[n], L->top+n); cl 496 lib/lua/lapi.c setclvalue(L, L->top, cl); cl 497 lib/lua/lapi.c lua_assert(iswhite(obj2gco(cl))); cl 839 lib/lua/lapi.c Closure *cl; cl 840 lib/lua/lapi.c cl = luaF_newCclosure(L, 0, getcurrenv(L)); cl 841 lib/lua/lapi.c cl->c.f = c->func; cl 842 lib/lua/lapi.c setclvalue(L, L->top, cl); /* push function */ cl 150 lib/lua/ldebug.c static void funcinfo (lua_Debug *ar, Closure *cl) { cl 151 lib/lua/ldebug.c if (cl->c.isC) { cl 158 lib/lua/ldebug.c ar->source = getstr(cl->l.p->source); cl 159 lib/lua/ldebug.c ar->linedefined = cl->l.p->linedefined; cl 160 lib/lua/ldebug.c ar->lastlinedefined = cl->l.p->lastlinedefined; cl 266 lib/lua/ldo.c LClosure *cl; cl 271 lib/lua/ldo.c cl = &clvalue(func)->l; cl 273 lib/lua/ldo.c if (!cl->isC) { /* Lua function? prepare its call */ cl 276 lib/lua/ldo.c Proto *p = cl->p; cl 494 lib/lua/ldo.c Closure *cl; cl 500 lib/lua/ldo.c cl = luaF_newLclosure(L, tf->nups, hvalue(gt(L))); cl 501 lib/lua/ldo.c cl->l.p = tf; cl 503 lib/lua/ldo.c cl->l.upvals[i] = luaF_newupval(L); cl 504 lib/lua/ldo.c setclvalue(L, L->top, cl); cl 224 lib/lua/lgc.c static void traverseclosure (global_State *g, Closure *cl) { cl 225 lib/lua/lgc.c markobject(g, cl->c.env); cl 226 lib/lua/lgc.c if (cl->c.isC) { cl 228 lib/lua/lgc.c for (i=0; i<cl->c.nupvalues; i++) /* mark its upvalues */ cl 229 lib/lua/lgc.c markvalue(g, &cl->c.upvalue[i]); cl 233 lib/lua/lgc.c lua_assert(cl->l.nupvalues == cl->l.p->nups); cl 234 lib/lua/lgc.c markobject(g, cl->l.p); cl 235 lib/lua/lgc.c for (i=0; i<cl->l.nupvalues; i++) /* mark its upvalues */ cl 236 lib/lua/lgc.c markobject(g, cl->l.upvals[i]); cl 291 lib/lua/lgc.c Closure *cl = gco2cl(o); cl 292 lib/lua/lgc.c g->gray = cl->c.gclist; cl 293 lib/lua/lgc.c traverseclosure(g, cl); cl 294 lib/lua/lgc.c return (cl->c.isC) ? sizeCclosure(cl->c.nupvalues) : cl 295 lib/lua/lgc.c sizeLclosure(cl->l.nupvalues); cl 98 lib/lua/lobject.h #define clvalue(o) check_exp(ttisfunction(o), &(o)->value.gc->cl) cl 140 lib/lua/lstate.h union Closure cl; cl 153 lib/lua/lstate.h #define gco2cl(o) check_exp((o)->gch.tt == LUA_TFUNCTION, &((o)->cl)) cl 226 lib/lua/lstrlib.c static int match_class (int c, int cl) { cl 228 lib/lua/lstrlib.c switch (tolower(cl)) { cl 239 lib/lua/lstrlib.c default: return (cl == c); cl 241 lib/lua/lstrlib.c return (islower(cl) ? res : !res); cl 394 lib/lua/lvm.c LClosure *cl; cl 401 lib/lua/lvm.c cl = &clvalue(L->ci->func)->l; cl 403 lib/lua/lvm.c k = cl->p->k; cl 445 lib/lua/lvm.c setobj2s(L, ra, cl->upvals[b]->v); cl 451 lib/lua/lvm.c sethvalue(L, &g, cl->env); cl 462 lib/lua/lvm.c sethvalue(L, &g, cl->env); cl 468 lib/lua/lvm.c UpVal *uv = cl->upvals[GETARG_B(i)]; cl 743 lib/lua/lvm.c p = cl->p->p[GETARG_Bx(i)]; cl 745 lib/lua/lvm.c ncl = luaF_newLclosure(L, nup, cl->env); cl 749 lib/lua/lvm.c ncl->l.upvals[j] = cl->upvals[GETARG_B(*pc)]; cl 763 lib/lua/lvm.c int n = cast_int(ci->base - ci->func) - cl->p->numparams - 1; cl 628 modules/edgeoverlay.c const color cl = FG_COLOR(user_color(conf.edge_overlay_color)); cl 657 modules/edgeoverlay.c draw_or_erase_edge_pixel(x_off+viewport_xoffset, y_off+viewport_yoffset, cl, bv_get(edgebuf, y_edgebuf + x)); cl 680 modules/edgeoverlay.c draw_or_erase_edge_pixel(x+viewport_xoffset, y+viewport_yoffset, cl, 0); cl 697 modules/edgeoverlay.c draw_or_erase_edge_pixel(x+viewport_xoffset, y+viewport_yoffset, cl, 0); cl 48 modules/games/gui_4wins.c static void stone(int column, int row, color cl) cl 50 modules/games/gui_4wins.c draw_ellipse((XBORDER+((column-1)*RECT_SIZE))+(RECT_SIZE/2), (BORDER_TOP+((7-row)*RECT_SIZE))+(RECT_SIZE/2), STONE_SIZE, STONE_SIZE, cl, DRAW_FILLED); cl 53 modules/games/gui_4wins.c static void cursor(int column, color cl) cl 55 modules/games/gui_4wins.c stone(column+1, 7, cl); cl 198 modules/games/gui_4wins.c twoColors cl = MAKE_COLOR(COLOR_RED, COLOR_WHITE); cl 203 modules/games/gui_4wins.c draw_rectangle(x, y, x + w, y + FONT_HEIGHT + 8, cl, RECT_BORDER2 | DRAW_FILLED | RECT_ROUND_CORNERS); cl 204 modules/games/gui_4wins.c draw_string_justified(x, y + 4, text, cl, 0, w, TEXT_CENTER); cl 36 modules/games/gui_mastermind.c static void choice_box(int x, int y, twoColors cl) cl 40 modules/games/gui_mastermind.c draw_rectangle(x+5, y+5, x+cell_size-5, y+cell_size-5, cl, RECT_BORDER1|DRAW_FILLED); cl 273 modules/games/gui_sokoban.c static void sokoban_draw_box(int x, int y, twoColors cl) { cl 274 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1, y*cell_size+cell_size-1, cl, RECT_BORDER1|DRAW_FILLED); cl 275 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+2, y*cell_size, camera_screen.disp_left+x*cell_size+2, y*cell_size+cell_size-1, FG_COLOR(cl)); cl 276 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1, FG_COLOR(cl)); cl 277 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+2, y*cell_size+2, camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size+2, FG_COLOR(cl)); cl 278 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+2, y*cell_size+cell_size-1-2, camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1-2, FG_COLOR(cl)); cl 242 modules/games/gui_tetris.c twoColors cl = MAKE_COLOR(TETRIS_COLOR_BG, TETRIS_COLOR_TEXT); cl 247 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 11, str_buf, cl); cl 249 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 10, str_buf, cl); cl 251 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 9, str_buf, cl); cl 253 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 8, str_buf, cl); cl 255 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 6, str_buf, cl); cl 257 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 5, str_buf, cl); cl 261 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 3, str_buf, cl); cl 263 modules/games/gui_tetris.c draw_string(tx, camera_screen.height - yo * 2, str_buf, cl); cl 180 modules/gui_bench.c twoColors cl; cl 182 modules/gui_bench.c cl = user_color(conf.menu_cursor_color); cl 184 modules/gui_bench.c cl = user_color(conf.menu_color); cl 186 modules/gui_bench.c draw_txt_string(pos, 0, s, cl); cl 667 modules/gui_bench.c int cl = strlen(lang_str(LANG_BENCH_CALCULATING)); cl 669 modules/gui_bench.c if (cl < 27) cl 671 modules/gui_bench.c strncpy(clearline+cl, " ", 27-cl); cl 82 modules/gui_mpopup.c twoColors cl; cl 85 modules/gui_mpopup.c cl = MAKE_COLOR((mpopup_actions_active==i)?COLOR_RED:COLOR_GREY, COLOR_WHITE); cl 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); cl 24 modules/gui_palette.c static chdkColor cl; cl 34 modules/gui_palette.c cl = st_color; cl 50 modules/gui_palette.c if (cl.type) cl 52 modules/gui_palette.c cl.type = 0; cl 53 modules/gui_palette.c if (cl.col > 15) cl 54 modules/gui_palette.c cl.col = 15; cl 58 modules/gui_palette.c if ((cl.col & 0xF0) == 0xF0) cl 60 modules/gui_palette.c cl.type = 1; cl 61 modules/gui_palette.c cl.col &= 0x0F; cl 65 modules/gui_palette.c cl.col = (((cl.col+16)&0xf0)|(cl.col&0x0f)); cl 74 modules/gui_palette.c if (cl.type) cl 76 modules/gui_palette.c cl.type = 0; cl 77 modules/gui_palette.c if (cl.col > 15) cl 78 modules/gui_palette.c cl.col = 15; cl 79 modules/gui_palette.c cl.col |= 0xF0; cl 83 modules/gui_palette.c if ((cl.col & 0xF0) == 0x00) cl 85 modules/gui_palette.c cl.type = 1; cl 89 modules/gui_palette.c cl.col = (((cl.col-16)&0xf0)|(cl.col&0x0f)); cl 98 modules/gui_palette.c if (cl.type) cl 100 modules/gui_palette.c if (cl.col-- == 0) cl.col = IDX_COLOR_MAX; cl 104 modules/gui_palette.c cl.col = ((cl.col&0xf0)|((cl.col-1)&0x0f)); cl 116 modules/gui_palette.c if (cl.type) cl 118 modules/gui_palette.c if (cl.col++ == IDX_COLOR_MAX) cl.col = 0; cl 122 modules/gui_palette.c cl.col = ((cl.col&0xf0)|((cl.col+1)&0x0f)); cl 135 modules/gui_palette.c palette_on_select(cl); cl 282 modules/gui_palette.c sprintf(buf, " %s: 0x%02hX 0x%08X", lang_str(LANG_PALETTE_TEXT_COLOR), cl.col, pal[chdkColorToCanonColor(cl)]); cl 284 modules/gui_palette.c sprintf(buf, " %s: 0x%02hX", lang_str(LANG_PALETTE_TEXT_COLOR), cl.col ); cl 314 modules/gui_palette.c if (cl.type) cl 317 modules/gui_palette.c x = DISP_LEFT + cl.col * CELL_SIZE; cl 321 modules/gui_palette.c y = DISP_TOP + ((cl.col>>4)&0x0F) * CELL_SIZE; cl 322 modules/gui_palette.c x = DISP_LEFT + (cl.col&0x0F) * CELL_SIZE; cl 326 modules/gui_palette.c draw_rectangle(xl+x-CELL_ZOOM, y-CELL_ZOOM, xl+x+CELL_SIZE+CELL_ZOOM, y+CELL_SIZE+CELL_ZOOM, MAKE_COLOR(chdkColorToCanonColor(cl), COLOR_RED), RECT_BORDER2|DRAW_FILLED); cl 329 modules/gui_palette.c draw_rectangle(xl+DISP_RIGHT+BORDER_SIZE+1, DISP_TOP+CELL_SIZE*3, xr-BORDER_SIZE, DISP_BOTTOM, MAKE_COLOR(chdkColorToCanonColor(cl), COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); cl 329 modules/histogram.c register color cl, cl_over, cl_bg = BG_COLOR(hc); cl 335 modules/histogram.c cl=COLOR_RED; cl 338 modules/histogram.c cl=COLOR_GREEN; cl 341 modules/histogram.c cl=COLOR_BLUE; cl 346 modules/histogram.c cl=FG_COLOR(hc); cl 356 modules/histogram.c draw_pixel(x+1+i, y+h-v, (v<=threshold)?cl:cl_bg); cl 357 modules/histogram.c cl_over = (threshold==h && conf.show_overexp)?BG_COLOR(hc2):cl; cl 366 modules/histogram.c draw_pixel(x+1+i, y+h-v, (v<=threshold)?cl:cl_bg); cl 367 modules/histogram.c cl_over = (threshold==h && conf.show_overexp)?BG_COLOR(hc2):cl; cl 1289 modules/luascript.c color cl=get_script_color(luaL_checknumber(L,3)); cl 1290 modules/luascript.c draw_pixel(x1,y1,cl); cl 1299 modules/luascript.c color cl=get_script_color(luaL_checknumber(L,5)); cl 1300 modules/luascript.c draw_line(x1,y1,x2,y2,cl); cl 1309 modules/luascript.c color cl=get_script_color(luaL_checknumber(L,5)); cl 1311 modules/luascript.c draw_rectangle(x1,y1,x2,y2,MAKE_COLOR(cl,cl),th); cl 1332 modules/luascript.c color cl=get_script_color(luaL_checknumber(L,5)); cl 1333 modules/luascript.c draw_ellipse(x1,y1,a,b,cl,0); cl 1342 modules/luascript.c color cl=get_script_color(luaL_checknumber(L,5)); cl 1343 modules/luascript.c draw_ellipse(x1,y1,a,b,cl,DRAW_FILLED); cl 445 modules/user_menu_edit.c static twoColors cl, cl_symbol; cl 461 modules/user_menu_edit.c xx += rbf_draw_char(xx, yy, ' ', cl); cl 468 modules/user_menu_edit.c xx += rbf_draw_string_len(xx, yy, w-len_space*4, lang_str(curr_menu->menu[imenu].text), cl); cl 475 modules/user_menu_edit.c xx += rbf_draw_string_len(xx, yy, w-len_space-len_space-symbol_width, str, cl); cl 478 modules/user_menu_edit.c rbf_draw_char(xx, yy, ' ', cl); cl 491 modules/user_menu_edit.c xx += rbf_draw_string_len(xx, yy, wid, lang_str(text), cl); cl 513 modules/user_menu_edit.c cl = user_color((gui_menu_curr_item==imenu) ? conf.menu_cursor_color : conf.menu_color); cl 515 modules/user_menu_edit.c cl = MAKE_COLOR(BG_COLOR(cl),COLOR_GREEN); cl 516 modules/user_menu_edit.c cl_symbol = (gui_menu_curr_item==imenu)?MAKE_COLOR(BG_COLOR(cl),FG_COLOR(user_color(conf.menu_symbol_color))):user_color(conf.menu_symbol_color); cl 546 modules/user_menu_edit.c xx+=rbf_draw_string_len(xx, yy, w-len_space-symbol_width, lang_str(curr_menu->menu[imenu].text), cl); cl 186 modules/zebra.c static void draw_pixel_buffered(unsigned int offset, color cl) cl 188 modules/zebra.c buf[offset] = cl; cl 479 platform/ixus240_elph320hs/kbd.c twoColors cl = c1; cl 480 platform/ixus240_elph320hs/kbd.c if (guiMode && (keymap[i].hackkey == KEY_PRINT)) cl = c2; cl 481 platform/ixus240_elph320hs/kbd.c if (keymap[i].conf_val && *keymap[i].conf_val) cl = c2; cl 483 platform/ixus240_elph320hs/kbd.c draw_rectangle(x1, y1, x2, y2, cl, RECT_BORDER3|DRAW_FILLED|RECT_ROUND_CORNERS); cl 491 platform/ixus240_elph320hs/kbd.c draw_string(x1+4, y1+ofst, "UD!", cl); cl 500 platform/ixus240_elph320hs/kbd.c draw_string(x1+4, y1+25, buf, cl); cl 505 platform/ixus240_elph320hs/kbd.c draw_string(x1+4, y1+25, keymap[i].nm2, cl); cl 507 platform/ixus240_elph320hs/kbd.c draw_string(x1+4, y1+ofst, keymap[i].nm, cl); cl 244 platform/ixus310_elph500hs/kbd.c twoColors cl = c1; cl 245 platform/ixus310_elph500hs/kbd.c if (camera_info.state.gui_mode && (keymap[i].hackkey == KEY_PRINT)) cl = c2; cl 246 platform/ixus310_elph500hs/kbd.c if (keymap[i].conf_val && *keymap[i].conf_val) cl = c2; cl 248 platform/ixus310_elph500hs/kbd.c draw_rectangle(x1, y1, x2, y2, cl, RECT_BORDER3|DRAW_FILLED|RECT_ROUND_CORNERS); cl 256 platform/ixus310_elph500hs/kbd.c draw_string(x1+xo, y1+yo+18, buf, cl); cl 262 platform/ixus310_elph500hs/kbd.c draw_string(x1+xo, y1+yo+18, keymap[i].nm2, cl); cl 265 platform/ixus310_elph500hs/kbd.c draw_string_scaled(x1+xo, y1+yo, keymap[i].nm, cl, sc, sc); cl 1236 platform/m10/sub/110d/movie_rec.c int *cl = (int*)(*(r0+1)); cl 1239 platform/m10/sub/110d/movie_rec.c lsum += *(cl+1); cl 1240 platform/m10/sub/110d/movie_rec.c cl+=3; cl 1236 platform/m10/sub/110f/movie_rec.c int *cl = (int*)(*(r0+1)); cl 1239 platform/m10/sub/110f/movie_rec.c lsum += *(cl+1); cl 1240 platform/m10/sub/110f/movie_rec.c cl+=3; cl 1236 platform/m10/sub/111a/movie_rec.c int *cl = (int*)(*(r0+1)); cl 1239 platform/m10/sub/111a/movie_rec.c lsum += *(cl+1); cl 1240 platform/m10/sub/111a/movie_rec.c cl+=3; cl 1445 platform/m3/sub/101a/movie_rec.c int *cl = (int*)(*(r0+1)); cl 1448 platform/m3/sub/101a/movie_rec.c lsum += *(cl+1); cl 1449 platform/m3/sub/101a/movie_rec.c cl+=3; cl 1445 platform/m3/sub/120f/movie_rec.c int *cl = (int*)(*(r0+1)); cl 1448 platform/m3/sub/120f/movie_rec.c lsum += *(cl+1); cl 1449 platform/m3/sub/120f/movie_rec.c cl+=3; cl 1445 platform/m3/sub/121a/movie_rec.c int *cl = (int*)(*(r0+1)); cl 1448 platform/m3/sub/121a/movie_rec.c lsum += *(cl+1); cl 1449 platform/m3/sub/121a/movie_rec.c cl+=3; cl 670 platform/sx280hs/sub/102b/movie_rec.c int *cl = (int*)(*(r0+1)); cl 673 platform/sx280hs/sub/102b/movie_rec.c lsum += *(cl+1); cl 674 platform/sx280hs/sub/102b/movie_rec.c cl+=3; cl 672 platform/sx280hs/sub/102c/movie_rec.c int *cl = (int*)(*(r0+1)); cl 675 platform/sx280hs/sub/102c/movie_rec.c lsum += *(cl+1); cl 676 platform/sx280hs/sub/102c/movie_rec.c cl+=3;