Rev 8319 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8319 | Rev 8320 | ||
---|---|---|---|
Line 444... | Line 444... | ||
444 | if (value = tag.get_value_of("src=")) strlcpy(#img_path, value, sizeof(img_path)-1); |
444 | if (value = tag.get_value_of("src=")) strlcpy(#img_path, value, sizeof(img_path)-1); |
445 | if (value = tag.get_value_of("title=")) && (strlen(value) |
445 | if (value = tag.get_value_of("title=")) && (strlen(value) |
446 | if (value = tag.get_value_of("alt=")) && (strlen(value) |
446 | if (value = tag.get_value_of("alt=")) && (strlen(value) |
447 | if (!img_path) { line=0; return; } |
447 | if (!img_path) { line=0; return; } |
448 | style.image = true; |
448 | style.image = true; |
449 | page_img.add(#img_path, stolbec+1*list.font_w+3, draw_y); |
449 | page_img.add_pos(#img_path, stolbec+1*list.font_w+3, draw_y); |
450 | text_colors.add(0x9A6F29); |
450 | text_colors.add(0x9A6F29); |
451 | if (!line) { |
451 | if (!line) { |
452 | if (!strncmp(#img_path, "data:", 5)) img_path=0; |
452 | if (!strncmp(#img_path, "data:", 5)) img_path=0; |
453 | replace_char(#img_path, '?', NULL, strlen(#img_path)); |
453 | replace_char(#img_path, '?', NULL, strlen(#img_path)); |
454 | sprintf(#line, "[%s]", #img_path+strrchr(#img_path, '/')); |
454 | sprintf(#line, "[%s]", #img_path+strrchr(#img_path, '/')); |
Line 605... | Line 605... | ||
605 | } |
605 | } |
606 | //============================================================================================ |
606 | //============================================================================================ |
607 | void TWebBrowser::DrawPage() |
607 | void TWebBrowser::DrawPage() |
608 | { |
608 | { |
609 | PutPaletteImage(list.first * DrawBuf.bufw * 4 + buf_data+8, DrawBuf.bufw, list.h, DrawBuf.bufx, DrawBuf.bufy, 32, 0); |
609 | PutPaletteImage(list.first * DrawBuf.bufw * 4 + buf_data+8, DrawBuf.bufw, list.h, DrawBuf.bufx, DrawBuf.bufy, 32, 0); |
610 | page_img.draw(list.x, list.y, list.first, list.h); |
610 | page_img.draw_all(list.x, list.y, list.first, list.h); |
611 | DrawScroller(); |
611 | DrawScroller(); |
612 | }1)>1)>>>>>': |
612 | }1)>1)>>>>>': |
613 | >8);>>>?xml"))> |