void\r
modexDrawBmpRegion(page_t *page, int x, int y,\r
int rx, int ry, int rw, int rh, bitmap_t *bmp) {\r
- word poffset = (word) page->data + y*(page->width/4) + x/4;\r
+ word poffset = (word)page->data + y*(page->width/4) + x/4;\r
byte *data = bmp->data;//+bmp->offset;\r
word bmpOffset = (word) data + ry * bmp->width + rx;\r
word width = rw;\r
modexPalUpdate1(&PCXBMP->palette);\r
\r
/* clear and draw one sprite and one bitmap */\r
- modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 1);\r
+ modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].width, gvar.video.page[0].height, 1);\r
\r
/* non sprite comparison */\r
- start = *clockw;\r
+ /*start = *clockw;\r
//for(i=0; i<100 ;i++) {\r
- oldDrawBmp(VGA, 20, 20, PCXBMPPTR, 0);\r
+ oldDrawBmp(VGA, 0, 0, PCXBMPPTR, 0);\r
//}\r
\r
start = *clockw;\r
//0000 modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 20, 20, 128, 20, 64, 64);\r
modexCopyPageRegion(&gvar.video.page[0], &gvar.video.page[0], 0, 0, 0, 0, 320, 240);\r
//}\r
- t2 = (*clockw-start)/18.2;\r
+ t2 = (*clockw-start)/18.2;*/\r
\r
\r
start = *clockw;\r
//for(i=0; i<100 ;i++) {\r
- oldDrawBmp(VGA, 20, 20, PCXBMPPTR, 1);\r
+ oldDrawBmp(VGA, 0, 0, PCXBMPPTR, 1);\r
//}\r
+ t1 = (*clockw-start) /18.2;\r
\r
\r
start = *clockw;\r
//for(i=0; i<100 ;i++) {\r
//0000 modexDrawSprite(&gvar.video.page[0], 20, 20, PCXBMPPTR);\r
- modexDrawSprite(&gvar.video.page[0], 160, 120, PCXBMPPTR);\r
+ modexDrawSprite(&(gvar.video.page[0]), 160, 120, PCXBMPPTR);\r
+ modexDrawBmp(&gvar.video.page[0], 0, 128, PCXBMPPTR);\r
//}\r
+ t2 = (*clockw-start)/18.2;\r
//_fmemset(MK_FP(0xA000, 0), (int)p->plane, gvar.video.page[0].sw*(gvar.video.page[0].sh*2));\r
//modexDrawBmp(&gvar.video.page[0], 0, 0, PCXBMPPTR);\r
while(!kbhit())\r
if(!pageflipflop) VL_ShowPage(mv[1].page, 0, 0);//modexShowPage(mv[1].page);\r
else ZC_ShowMV(&mv, 0, 0);//modexShowPage(mv[0].page);//!(gvar.video.p)\r
\r
-\r
modexDrawBmp(&gvar.video.page[0], 16, 16, PCXBMPPTR);\r
/* buffer pages */\r
// modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 47);\r
word startclk, endclk;\r
word k;\r
//====byte *pal, *pal2;\r
- sword bakapee;\r
\r
//====word colo=LGQ;\r
gvar.video.panp=0;\r
\r
- //argument\r
- if(argv[1]) bakapee = atoi(argv[1]);\r
- else bakapee = 1;\r
-\r
// DOSLIB: check our environment\r
/*probe_dos();\r
\r
IN_Default(0,&player,ctrl_Keyboard1);\r
IN_initplayer(&player, 0);\r
\r
- VGAmodeX(bakapee, 1, &gvar);\r
+ VGAmodeX(1, 1, &gvar);\r
//====modexPalBlack();\r
\r
/* load our palette */\r
// if(i>PAL_SIZE) i=0;\r
}//9*/\r
if(IN_KeyDown(25)){ modexpdump(&gvar.video.page[gvar.video.panp]); IN_UserInput(1,1); }//p\r
+ if(IN_KeyDown(sc_F8)){ modexDrawSprite(&gvar.video.page[0], 160, 120, PCXBMPPTR); IN_UserInput(1,1); }//f8\r
//VL_ShowPage(&gvar.video.page[gvar.video.panp], 0, 0);\r
ZC_ShowMV(&mv, 0, 0);\r
}\r