From ac6a7bd850759c86375f100eb5f517d7c63828c2 Mon Sep 17 00:00:00 2001 From: rbertin-aso Date: Thu, 31 Mar 2022 14:50:25 +0200 Subject: [PATCH] Fix tool y offset for custom pool blocks --- tools/GpuMemDumpVis/GpuMemDumpVis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/GpuMemDumpVis/GpuMemDumpVis.py b/tools/GpuMemDumpVis/GpuMemDumpVis.py index b225306..1d75b82 100644 --- a/tools/GpuMemDumpVis/GpuMemDumpVis.py +++ b/tools/GpuMemDumpVis/GpuMemDumpVis.py @@ -306,7 +306,7 @@ if __name__ == '__main__': draw.text((IMG_MARGIN, y), "Custom pool %s block %s" % (poolName, block['ID']), fill=COLOR_TEXT_H2, font=font) y += FONT_SIZE + IMG_MARGIN DrawBlock(draw, y, block, pixelsPerByte) - y += 2 * (FONT_SIZE + IMG_MARGIN) + y += MAP_SIZE + IMG_MARGIN index = 0 for dedicatedAlloc in pool['DedicatedAllocations']: draw.text((IMG_MARGIN, y), "Custom pool %s dedicated allocation %d" % (poolName, index), fill=COLOR_TEXT_H2, font=font)