mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Fix #306
This commit is contained in:
parent
4fbd909c8c
commit
d714d580e8
@ -567,7 +567,7 @@ u32 FileHexViewer(const char* path) {
|
||||
}
|
||||
// fix offset (if required)
|
||||
if (offset % cols) offset -= (offset % cols); // fix offset (align to cols)
|
||||
if (offset + total_shown > fsize + cols) // if offset too big
|
||||
if (offset + total_shown - cols > fsize) // if offset too big
|
||||
offset = (total_shown > fsize) ? 0 : (fsize + cols - total_shown - (fsize % cols));
|
||||
// get data, using max data size (if new offset)
|
||||
if (offset != last_offset) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user