1
0
Fork 0

GUI: resolved issue #233 (crack in hexdump when scrolling up sometimes)

This commit is contained in:
Mr. eXoDia 2015-01-01 20:44:19 +01:00
parent 2eaac560e6
commit 2e347ad716
3 changed files with 9 additions and 1 deletions

View File

@ -238,7 +238,7 @@ QString HexDump::paintContent(QPainter* painter, int_t rowBase, int rowOffset, i
{
// Reset byte offset when base address is reached
if(rowBase == 0 && mByteOffset != 0)
printDumpAt(mMemPage->getBase(), false);
printDumpAt(mMemPage->getBase(), false, false);
// Compute RVA
int wBytePerRowCount = getBytePerRowCount();

View File

@ -361,6 +361,10 @@ void CPUDump::refreshShortcutsSlot()
QString CPUDump::paintContent(QPainter* painter, int_t rowBase, int rowOffset, int col, int x, int y, int w, int h)
{
// Reset byte offset when base address is reached
if(rowBase == 0 && mByteOffset != 0)
printDumpAt(mMemPage->getBase(), false, false);
QString wStr = "";
if(!col) //address
{

View File

@ -169,6 +169,10 @@ void CPUStack::refreshShortcutsSlot()
QString CPUStack::paintContent(QPainter* painter, int_t rowBase, int rowOffset, int col, int x, int y, int w, int h)
{
// Reset byte offset when base address is reached
if(rowBase == 0 && mByteOffset != 0)
printDumpAt(mMemPage->getBase(), false, false);
// Compute RVA
int wBytePerRowCount = getBytePerRowCount();
int_t wRva = (rowBase + rowOffset) * wBytePerRowCount - mByteOffset;