| verzia 1.11, 2002/11/10 16:58:30 |
verzia 1.12, 2002/11/30 19:38:09 |
|
|
| |
|
| #include "parse.h" |
#include "parse.h" |
| #include "cpdf.h" |
#include "cpdf.h" |
| |
#include "svga.h" |
| |
|
| /* $Platon: cpdf/cpdf.c,v 1.10 2002/10/20 14:07:22 lynx Exp $ */ |
/* $Platon: cpdf/cpdf.c,v 1.11 2002/11/10 16:58:30 lynx Exp $ */ |
| static struct option lopt[] = { |
static struct option lopt[] = { |
| |
|
| {"mode", required_argument, 0, 'm'}, |
{"mode", required_argument, 0, 'm'}, |
| Riadok 33 int main(int argc, char **argv) |
|
| Riadok 34 int main(int argc, char **argv) |
|
| if (argc == 1) |
if (argc == 1) |
| usage(argv[0]); |
usage(argv[0]); |
| while ((c = |
while ((c = |
| getopt_long(argc - 1, &argv[1], "m:", lopt, |
getopt_long(argc - 1, &argv[1], "m:p:", lopt, |
| &index)) != -1) { |
&index)) != -1) { |
| switch (c) { |
switch (c) { |
| case 'm': |
case 'm': |
| Riadok 76 int main(int argc, char **argv) |
|
| Riadok 77 int main(int argc, char **argv) |
|
| #ifdef DEBUG |
#ifdef DEBUG |
| printf("Using %s mode\n", vga_getmodename(mode)); |
printf("Using %s mode\n", vga_getmodename(mode)); |
| #endif |
#endif |
| /* vga_init(); |
vga_init(); |
| vga_setmode(mode); |
vga_setmode(mode); |
| gl_setcontextvga(mode); |
gl_setcontextvga(mode); |
| physicalscreen = gl_allocatecontext(); |
physicalscreen = gl_allocatecontext(); |
| Riadok 85 int main(int argc, char **argv) |
|
| Riadok 86 int main(int argc, char **argv) |
|
| virtualscreen = gl_allocatecontext(); |
virtualscreen = gl_allocatecontext(); |
| gl_getcontext(virtualscreen); |
gl_getcontext(virtualscreen); |
| gl_setcontext(virtualscreen); |
gl_setcontext(virtualscreen); |
| gl_clearscreen(15);*/ |
gl_clearscreen(0xFFFFFFFF); |
| parse_pdf(); |
parse_pdf(); |
| current_page = p; |
current_page = p; |
| loop(); |
loop(); |