void VWB_Hlin (id0_int_t x1, id0_int_t x2, id0_int_t y, id0_int_t color) { x1+=pansx; x2+=pansx; y+=pansy; if (VW_MarkUpdateBlock (x1,y,x2,y)) VW_Hlin(x1,x2,y,color); }
void VW_Bar (id0_unsigned_t x, id0_unsigned_t y, id0_unsigned_t width, id0_unsigned_t height, id0_unsigned_t color) { id0_unsigned_t xh = x+width-1; while (height--) VW_Hlin (x,xh,y++,color); }
void VWB_Hlin( int x1, int x2, int y, std::uint8_t color) { VW_Hlin(x1, x2, y, color); }
void MM_ShowMemory (void) { mmblocktype id0_far *scan; id0_unsigned_t color,temp; id0_long_t end; VW_SetLineWidth(40); temp = bufferofs; bufferofs = 0; VW_SetScreen (0,0); scan = mmhead; end = -1; while (scan) { if (scan->attributes & PURGEBITS) color = 5; // dark purple = purgable else color = 9; // medium blue = non purgable if (scan->attributes & LOCKBIT) color = 12; // red = locked if (scan->start<=end) Quit ("MM_ShowMemory: Memory block order currupted!"); end = scan->start+scan->length-1; VW_Hlin(scan->start,(id0_unsigned_t)end,0,color); VW_Plot(scan->start,0,15); if (scan->next->start > end+1) VW_Hlin(end+1,scan->next->start,0,0); // black = free scan = scan->next; } IN_Ack(); VW_SetLineWidth(64); bufferofs = temp; }