solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.3k stars 113 forks source link

Dynamic decimal offset #235

Open PyroSamurai opened 3 months ago

PyroSamurai commented 3 months ago

Quick & dirty mod to make the offset column dynamically change size & number padding.

I would have used something cleaner with C++20, but since C++11 was designated in Makefile. So I went with a IF tree to keep modification to the program to a minimum.

Modify it as you wish. As long as the functionality stays the same, I'll be happy.