global_game_variables_t gvar;\r
bitmap_t bmp, ptmpbt;\r
planar_buf_t *p, *ptmp;\r
+planar_buf_t pnp;\r
\r
void main(int argc, char *argv[])\r
{\r
\r
bmp = bitmapLoadPcx(bakapeee);\r
p = planar_buf_from_bitmap(&bmp);\r
+ pnp = planar_buf_from_bitmap0(&bmp);\r
ptmpbt = bitmapLoadPcx("data/ptmp.pcx");\r
ptmp = planar_buf_from_bitmap(&ptmpbt);\r
VGAmodeX(baka, &gvar);\r
start = *clockw;\r
// oldDrawBmp(VGA, 20, 20, &bmp, 0);\r
for(i=0; i<100 ;i++) {\r
- modexDrawBmpPBuf(&gvar.video.page[0], 32, 32, p);\r
+ modexDrawBmpPBufRegion (&gvar.video.page[0], 32, 32, 0, 0, pnp.width, pnp.height, &pnp);\r
+// modexDrawBmpPBuf (&gvar.video.page[0], 32, 32, p);\r
}\r
t1 = (*clockw-start) /18.2;\r
// start = *clockw;\r