\r
end = -1; w = 0;\r
\r
- width = gvar->video.page[0].width;\r
+ width = gvar->video.page[0].sw;\r
\r
CA_OpenDebug (gvar);\r
while (scan)\r
}\r
#endif\r
#ifdef MMSMSCANINFO\r
- maxq = q-1;\r
+ maxq = q;\r
if(restarted) q = oldq;\r
else q = 0;\r
restarted = false;\r
if(gvar->video.VL_Started)\r
{\r
VL_ShowPage(&gvar->video.page[0], 1, 0);\r
- modexClearRegion(&gvar->video.page[0], 0, 0, gvar->video.page[0].width, gvar->video.page[0].height, 8);\r
+ modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
}else\r
#endif\r
clrscr();\r
else q = 0;\r
break;\r
case sc_UpArrow:\r
- if(q>10) q-=10;\r
+ if(q>9) q-=10;\r
else q = maxq;\r
break;\r
case sc_DownArrow:\r
- if(q<maxq+10) q+=10;\r
+ if(q<maxq-9) q+=10;\r
else q = 0;\r
break;\r
case sc_Space:\r
oldq = q;\r
restarted = true;\r
- modexClearRegion(&gvar->video.page[0], 0, 0, gvar->video.page[0].width, gvar->video.page[0].height, 8);\r
+ modexClearRegion(&gvar->video.page[0], gvar->video.page[0].dx, gvar->video.page[0].dy, gvar->video.page[0].sw, gvar->video.page[0].sh, 8);\r
goto reset;\r
break;\r
case sc_Escape:\r