// main variables values
d=4; // switch variable
key=2; // default screensaver number
- xpos=TILEWH*2;
- ypos=TILEWH*2;
+ xpos=TILEWHD;
+ ypos=TILEWHD;
xdir=1;
ydir=1;
/* setup camera and screen~ */
gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);
- //gvar.video.page[0].width += (TILEWH*2);
- //gvar.video.page[0].height += (TILEWH*2);
textInit();
//modexPalUpdate(bmp.palette); //____
VGAmodeX(0, 0, &gvar);
// user imput switch
//fprintf(stderr, "xx=%d yy=%d tile=%d\n", bakapee.xx, bakapee.yy, bakapee.tile);
- fprintf(stderr, "dx=%d dy=%d ", gvar.video.page[0].dx, gvar.video.page[0].dy);
+ //fprintf(stderr, "dx=%d dy=%d ", gvar.video.page[0].dx, gvar.video.page[0].dy);
printf("Tiled mode is ");
switch (bakapee.tile)
{
case '6':
case '9':
key = c - '0';
- gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);
- gvar.video.page[0].width += (TILEWH*2);
- gvar.video.page[0].height += (TILEWH*2);
VGAmodeX(vgamodex_mode, 0, &gvar);
+ gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);
// this code is written around modex16 which so far is a better fit than using DOSLIB vga directly, so leave MXLIB code in.
// we'll integrate DOSLIB vga into that part of the code instead for less disruption. -- J.C.
modexShowPage(&gvar.video.page[0]);
}
VGAmodeX(0, 1, &gvar);
#endif // defined(BOINK)
+// printf("page.width=%u ", gvar.video.page[0].width); printf("page.height=%u\n", gvar.video.page[0].height);
printf("bakapi ver. 1.04.16.04\nis made by sparky4\81i\81\86\83Ö\81\85\81j feel free to use it ^^\nLicence: GPL v3\n");
printf("compiled on 2016/04/04\n");
}
ty+=pee->yy+TILEWH+4;
modexClearRegion(page, tx, ty, 4, 4, pee->coor);
if(pee->tile)
- modexClearRegion(page, (rand()*TILEWH)%page->width, (rand()*TILEWH)%(page->height), TILEWH, TILEWH, 0);
+ modexClearRegion(page, (rand()*4)%page->width, (rand()*4)%(page->height), 4, 4, 0);
else
modexputPixel(page, rand()%page->width, rand()%(page->height), 0);
//printf("%d %d %d %d %d %d\n", pee->xx, pee->yy, tx, ty, TILEWH);