diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-07-26 19:13:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-07-26 19:13:51 (GMT) |
commit | ba30fbc703ff3ad77bb5df6c167809955215d49c (patch) | |
tree | ef3b8dda358be68b834503f794836d7dde17dabf /src/glibext/generators | |
parent | a6c46fc296db67321db3d4bb586346998de90422 (diff) |
Avoided fixed columns when filling lines with locations.
Diffstat (limited to 'src/glibext/generators')
-rw-r--r-- | src/glibext/generators/hex.c | 2 | ||||
-rw-r--r-- | src/glibext/generators/rborder.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/glibext/generators/hex.c b/src/glibext/generators/hex.c index f08d3fb..9285e00 100644 --- a/src/glibext/generators/hex.c +++ b/src/glibext/generators/hex.c @@ -487,7 +487,7 @@ static void g_hex_generator_print(GHexGenerator *generator, GBufferLine *line, s init_vmpa(&pos, generator->bytes_per_line * index, VMPA_NO_VIRTUAL); - g_buffer_line_fill_phys(line, MDS_32_BITS_UNSIGNED, &pos); + g_buffer_line_fill_phys(line, HLC_PHYSICAL, MDS_32_BITS_UNSIGNED, &pos); /* Contenu brut */ diff --git a/src/glibext/generators/rborder.c b/src/glibext/generators/rborder.c index 8ff1271..42ffc23 100644 --- a/src/glibext/generators/rborder.c +++ b/src/glibext/generators/rborder.c @@ -33,6 +33,7 @@ #include "../gbinarycursor.h" #include "../linegen-int.h" #include "../linesegment.h" +#include "../../gtkext/gtkblockdisplay.h" @@ -357,7 +358,9 @@ static void g_border_generator_print(GBorderGenerator *generator, GBufferLine *l assert(repeat < 3); - g_buffer_line_fill_vmpa(line, &generator->addr, generator->msize, generator->msize); + g_buffer_line_fill_phys(line, DLC_PHYSICAL, generator->msize, &generator->addr); + + g_buffer_line_fill_virt(line, DLC_VIRTUAL, generator->msize, &generator->addr); if (repeat == 1) { |