From b8eb01a5debce93e12b25b151daacf47127f29e9 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 19 Apr 2017 15:13:22 -0500 Subject: [PATCH] p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I should remember what needs to be done soon][OpenVGMFile needs to be ported to 16_snd.c]going to port rest of code to borland c some time so we can use the core components of id engine here [going to add 16_us.c eventually but the debug system and CA_ PM_ and MM_ usage is priority now]older zcroll renamed to xcroll][zcroll is now the pre menu game loop system with PROPER data usage with CAMMPM] wwww --- src/lib/16_mm.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/16_mm.c b/src/lib/16_mm.c index 36b976a0..75fc0d9a 100755 --- a/src/lib/16_mm.c +++ b/src/lib/16_mm.c @@ -1454,12 +1454,23 @@ void MM_ShowMemory (global_game_variables_t *gvar) //modexprint(page, x, y, t, tlsw, color, bgcolor, vidsw, const byte *str); #define MMSMPRINTMEMINFO modexprint(&(gvar->video.page[0]), xpos, ypos, 1, 0, ccolor, 8, gvar->video.VL_Started, global_temp_status_text); ypos+=8; VL_ShowPage(&gvar->video.page[0], 1, 0); - if(!gvar->video.VL_Started) clrscr(); + if(!gvar->video.VL_Started) clrscr(); else + { + modexClearRegion(&gvar->video.page[0], 0, 0, gvar->video.page[0].width, gvar->video.page[0].height, 8); + } sprintf(global_temp_status_text, "block #%04u", qq); MMSMPRINTMEMINFO // sprintf(global_temp_status_text, "%Fp", scaninfo[qq].scan->useptr); MMSMPRINTMEMINFO sprintf(global_temp_status_text, "%04x", (unsigned)scaninfo[qq].scan->useptr); MMSMPRINTMEMINFO sprintf(global_temp_status_text, "size: %05u", (unsigned)scan->length); MMSMPRINTMEMINFO sprintf(global_temp_status_text, "free: %05u", (unsigned)(scaninfo[qq].scan->next->start-scaninfo[qq].scan->start)); MMSMPRINTMEMINFO + end = scaninfo[qq].scan->length-1; + y = ypos;//scaninfo[qq].scan->start/width; + x = xpos;//scaninfo[qq].scan->start%width; + VW_Hlin(x,x+end,y,ccolor,gvar); + VL_Plot(x,y,5,gvar); + if (scaninfo[qq].scan->next && scaninfo[qq].scan->next->start > end+1) + VW_Hlin(x+end+1,x+(scaninfo[qq].scan->next->start-scan->start),y,3,gvar); // black = free//now green + //if (scan->next && scan->next->start > end+1) free xpos = 16; ypos = 16;//(gvar->video.page[0].sh-(32));//8*4 -- 2.39.2