const int px=x+page->dx;\r
const int py=y+page->dy;\r
const int prw = rw/4;\r
+\r
+ //fine tuning\r
rx+=1;\r
ry+=1;\r
+\r
+ //^^;\r
#define PEEE rx-prw\r
#define PE (p->pwidth)\r
#define PEEEE (PE*(ry))\r
i=PEEE+PEEEE;\r
modexSelectPlane(PLANE(plane-1));\r
for(; y < py+rh; 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
-// printf("buff %u==%s\n", y, *buff);\r
_fmemcpy(page->data + (((page->width/4) * (y)) + ((x) / 4)), &(p->plane[plane][i]), prw);\r
i+=PE;\r
- //}\r
}\r
x=px;\r
y=py;\r
- }\r
+ }\r
}\r
\r
\r
getch();\r
for(i=0; i<100 ;i++) {\r
//(page_t *page, int x, int y, int rx, int ry, int rw, int rh, planar_buf_t *p, boolean sprite);\r
- modexDrawPBufRegion (&gvar.video.page[0], p.width, 0, p.width-16, p.height-16, 16, 16, &p, 0);//(&gvar.video.page[0], 0, 0, 0+p.width, 0, p.width, p.height, &p, 0);\r
+ modexDrawPBufRegion (&gvar.video.page[0], p.width, 0, p.width-(p.width/4), p.height-(p.height/4), p.width/4, p.height/4, &p, 0);//(&gvar.video.page[0], 0, 0, 0+p.width, 0, p.width, p.height, &p, 0);\r
}\r
t4 = (*clockw-start) /18.2;\r
//++++ modexPalUpdate1(ptmp.palette);\r