Diff for cpdf/svga.c between version 1.1 and 1.2
| version 1.1, 2002/10/20 14:07:23 |
version 1.2, 2002/11/10 16:58:30 |
|
|
| #include <vga.h> |
#include <vga.h> |
| #include <vgagl.h> |
#include <vgagl.h> |
| |
|
| #include "parse.c" |
#include "parse.h" |
| |
#include "cpdf.h" |
| |
#include "filter.h" |
| |
|
| void render(int pagenum) |
void render(void) |
| { |
{ |
| fill_page(pagenum); |
char *content,*txt; |
| return; |
struct page *page; |
| |
fill_page(page_tree[current_page]); |
| |
page = object[page_tree[current_page]]->parsed; |
| |
content = (char *) calloc(page->contents->length << 2,1); |
| |
gl_setfont(8, 8, gl_font8x8); |
| |
gl_setwritemode(FONT_COMPRESSED + WRITEMODE_OVERWRITE); |
| |
gl_setfontcolors(0, vga_white()); |
| |
filter(page->contents->filter,page->contents->stream, |
| |
page->contents->length,content,page->contents->length << 2); |
| |
txt = content = strstr(content,"("); |
| |
/* while(content) { |
| |
while(*txt != ')') txt++;*/ |
| |
gl_write(300,400,"Test test test ToTo je t3st\0"); |
| |
txt = content = strstr(content + 1,"("); |
| |
gl_copyscreen(physicalscreen); |
| |
/* }*/ |
| |
pause(); |
| |
exit(0); |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|