// (video->page[3]) = modexNextPageFlexibleSize(&(video->page[2]), 72, 128); video->num_of_pages++;\r
modexCalcVmemRemain(video);\r
video->p=0;\r
+ video->r=0;\r
}\r
\r
void\r
\r
void\r
modexWaitBorder() {\r
- while(inp(INPUT_STATUS_1) & 8) {\r
+ while(inp(INPUT_STATUS_1) & 8) {\r
// spin\r
- }\r
+ }\r
\r
-// while(!(inp(INPUT_STATUS_1) & 8)) {\r
-// // spin\r
-// }\r
+ while(!(inp(INPUT_STATUS_1) & 8)) {\r
+ //spin\r
+ }\r
}\r
\r
void bios_cls() {\r
break;
}
if(pageflipflop){
+ if(gv->video.r){
modexCopyPageRegion(&(gv->video.page[(gv->video.p)]), &(gv->video.page[(!gv->video.p)]), 0, 0, 0, 0, gv->video.page[gv->video.p].width, gv->video.page[!gv->video.p].height);
modexShowPage(&(gv->video.page[gv->video.p])); //this is slow as fack too!!
gv->video.p=!gv->video.p;
+ gv->video.r=!gv->video.r;
+ }
}
}
if(3>ls && ls>=2) { FRAME2 }else
if(4>ls && ls>=3) { FRAME3 }else
if(5>ls && ls>=4) { FRAME4 }
+ pip->video->r=1;
//TODO: mask copy //modexCopyPageRegion(dest->page, src->page, x-4, y-4, x-4, y-4, 28, 40);
//modexClearRegion(top->page, 66, 66, 2, 40, 0);
//modexCopyPageRegion(dest->page, top->page, 66, 66, 66, 66, 2, 40);
word vmem_remain; //remaining video memory\r
byte num_of_pages; //number of actual pages\r
boolean __near p; //render page number\r
+ boolean __near r; //page flip if true\r
word pr[MAXPAGE][4]; //render sections of pages\r
} video_t;\r
\r