fprintf(stderr,"drawvrl <VRL file> <palette file>\n");\r
bakapee1 = FILENAME_1;//"data/aconita.vrl";\r
bakapee2 = FILENAME_2;//"data/aconita.pal";\r
- //return 1;\r
}else{\r
if(argv[1]) bakapee1 = argv[1];\r
if(argv[2]) bakapee2 = argv[2];\r
\r
/* setup camera and screen~ */\r
modexHiganbanaPageSetup(&gvar.video);\r
- gvar.video.page[1].dx=gvar.video.page[0].dx=16;\r
- gvar.video.page[1].dy=gvar.video.page[0].dy=16;\r
modexShowPage(&(gvar.video.page[0]));\r
\r
#define VMEMHEIGHT gvar.video.page[0].height+gvar.video.page[1].height\r
}\r
}\r
\r
- //while (getch() != 13);\r
\r
/* make distinctive pattern offscreen, render sprite, copy onscreen.\r
* this time, we render the distinctive pattern to another offscreen location and just copy.\r
VGA_RAM_PTR omemptr;\r
int xdir=1,ydir=1;\r
\r
- //4 this dose the sprite? wwww\r
/* fill pattern offset with a distinctive pattern */\r
for (i=0;i < gvar.video.page[0].width;i++) {\r
o = (i >> 2) + (0x10000UL - (uint16_t)gvar.video.page[1].data);\r
}\r
\r
/* starting coords. note: this technique is limited to x coordinates of multiple of 4 */\r
- x = 0;\r
- y = 0;\r
+ x = -(gvar.video.page[0].dx);\r
+ y = -(gvar.video.page[0].dy);\r
\r
/* do it */\r
omemptr = vga_state.vga_graphics_ram; // save original mem ptr\r