void MM_ShowMemory (global_game_variables_t *gvar)\r
{\r
mmblocktype far *scan;\r
- unsigned color,temp,x,y ,w,width;\r
+ unsigned color,temp,x,y ,w,width,sw;\r
sdword end,owner;\r
byte scratch[160],scratch0[4096],str[16];\r
#ifdef MMSMSCANINFO\r
\r
end = -1; w = 0;\r
\r
- width = gvar->video.page[0].sw;\r
+ width = gvar->video.page[0].width; sw = gvar->video.page[0].sw;\r
\r
CA_OpenDebug (gvar);\r
while (scan)\r
Quit (gvar, "MM_ShowMemory: Memory block order currupted!");\r
}\r
end = scan->length-1;\r
- y = scan->start/width;\r
- x = scan->start%width;\r
+ y = gvar->video.page[0].dx+(scan->start/sw);\r
+ x = gvar->video.page[0].dy+(scan->start%sw);\r
#if 0\r
//def MMSMSCANINFO\r
if(restarted){\r
}else ypos+=8;\r
if(gvar->video.VL_Started)\r
{\r
- y = scaninfo[q].scan->start/width;\r
- x = scaninfo[q].scan->start%width;\r
+ y = scaninfo[q].scan->start/sw;\r
+ x = scaninfo[q].scan->start%sw;\r
if(!mmsmscaninfoxyposinew)\r
{\r
y = ypos;\r