align characters in the ascii view

This commit is contained in:
Lephenixnoir 2022-06-24 20:39:10 +01:00
parent 5c834580c1
commit 5a33181db7
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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;