gvar->video.ofs.pan.panx = (originxglobal>>G_P_SHIFT) & 15;\r
gvar->video.ofs.pan.pansx = gvar->video.ofs.pan.panx & 8;\r
gvar->video.ofs.pan.pany = gvar->video.ofs.pan.pansy = (originyglobal>>G_P_SHIFT) & 15;\r
- gvar->video.ofs.pan.panadjust = gvar->video.ofs.pan.panx/8 + gvar->video.ofs.ylookup[gvar->video.ofs.pan.pany];\r
+// gvar->video.ofs.pan.panadjust = gvar->video.ofs.pan.panx/8 + gvar->video.ofs.ylookup[gvar->video.ofs.pan.pany];\r
+ gvar->video.ofs.pan.panadjust = gvar->video.ofs.pan.panx/8 + (gvar->video.ofs.pan.pany*gvar->video.page[0].stridew);\r
/*#endif\r
\r
#if GRMODE == CGAGR\r
\r
void RF_ClearBlock (int x, int y, int width, int height)\r
{\r
- eraseblocktype block;\r
+// eraseblocktype block;\r
\r
#if GRMODE == EGAGR\r
block.screenx = x/8+originxscreen;\r
\r
void RF_CalcTics (void)\r
{\r
- long newtime,oldtimecount;\r
+ long newtime;//,oldtimecount;\r
word TimeCount = *clockw;\r
\r
//\r
//\r
// erase the block by copying from the master screen\r
//\r
- pos = gvar->video.ofs.ylookup[block->screeny]+block->screenx;\r
+//---- pos = gvar->video.ofs.ylookup[block->screeny]+block->screenx;\r
+ pos = (block->screeny*gvar->video.page[0].stridew)+block->screenx;\r
block->width = (block->width + (pos&1) + 1)& ~1;\r
pos &= ~1; // make sure a word copy gets used\r
//++++ VW_ScreenToScreen (masterofs+pos,bufferofs+pos,\r