From 5a33181db7aa428b0e8c6561556283445f929696 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 24 Jun 2022 20:39:10 +0100 Subject: [PATCH] align characters in the ascii view --- src/heditor.c | 4 ++-- src/source-memory.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/heditor.c b/src/heditor.c index 21448a9..dde8f3c 100644 --- a/src/heditor.c +++ b/src/heditor.c @@ -263,8 +263,8 @@ static void heditor_poly_render(void *e0, int x, int y) line_y + e->font->line_height, C_BLACK); fg = C_WHITE; } - dprint(ascii_x, line_y, fg, "%c", - (c >= 0x20 && c < 0x7f) ? c : '.'); + dprint_opt(ascii_x + 4, line_y, fg, C_NONE, DTEXT_CENTER, + DTEXT_TOP, "%c", (c >= 0x20 && c < 0x7f) ? c : '.'); } int text_w; diff --git a/src/source-memory.c b/src/source-memory.c index 2509b44..532830c 100644 --- a/src/source-memory.c +++ b/src/source-memory.c @@ -44,8 +44,6 @@ memory_region_t *memory_all_regions[] = { NULL, }; -// TODO: Add offset to source + heditor view so we can see real memory addresses - static ssize_t mr_read(void *_cookie, void *buf, off_t offset, size_t size) { memory_region_t *mr = _cookie;