forked from Lephenixnoir/hex-editor
align characters in the ascii view
This commit is contained in:
parent
5c834580c1
commit
5a33181db7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue