for(plane=0; plane < 4; plane++) {\r
i=0;\r
modexSelectPlane(PLANE(plane+x));\r
- for(; y < p->height-1; y++) {\r
+ for(; y < py+p->height; y++) {\r
//for(px=0; px < p->width; px++) {\r
//printf("%02X ", (int) p->plane[plane][i++]);\r
// _fmemcpy(buff, &(p->plane[plane][i+=p->pwidth]), p->pwidth);\r
_fmemcpy(page->data + (((page->width/4) * (y+page->dy)) + ((x+page->dx) / 4)), &(p->plane[plane][i+=p->pwidth]), p->pwidth);\r
//}\r
}\r
- //getch();\r
x=px;\r
y=py;\r
}\r
/* non sprite comparison */\r
start = *clockw;\r
// oldDrawBmp(VGA, 20, 20, &bmp, 0);\r
-//0000 modexDrawBmp(&gvar.video.page[0], 20, 20, &bmp);\r
-// modexDrawBmp(&gvar.video.page[0], 160, 120, &bmp);\r
-// t1 = (*clockw-start) /18.2;\r
+ for(i=0; i<100 ;i++) {\r
+ modexDrawBmp(&gvar.video.page[0], 32, 32, &bmp);\r
+ }\r
+ t1 = (*clockw-start) /18.2;\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
// t2 = (*clockw-start)/18.2;\r
-// start = *clockw;\r
-// oldDrawBmp(VGA, 20, 20, &bmp, 1);\r
-//0000 modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp);\r
-// modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp);\r
+ start = *clockw;\r
for(i=0; i<100 ;i++) {\r
- DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+ DrawPBuf(&gvar.video.page[0], gvar.video.page[0].sw-(p->width), gvar.video.page[0].sh-(p->height), p, 0);\r
}\r
- t1 = (*clockw-start) /18.2;\r
+ t2 = (*clockw-start) /18.2;\r
while(!kbhit())\r
{\r
}\r
fprintf(stderr,"ppw=%d\n", p->pwidth);\r
fprintf(stderr,"%d\n", sizeof(bmp));\r
planar_buf_free(p);\r
- fprintf(stderr, "CPU to VGA: %f\n", t1);\r
-// fprintf(stderr, "VGA to VGA: %f\n", t2);\r
+ fprintf(stderr, "modexDrawBmp: %f\n", t1);\r
+ fprintf(stderr, "DrawPBuf: %f\n", t2);\r
fprintf(stderr, "gvar.video.page[0].width: %u\n", gvar.video.page[0].width);\r
fprintf(stderr, "gvar.video.page[0].height: %u\n", gvar.video.page[0].height);\r
return;\r