GUI: resolved issue #233 (crack in hexdump when scrolling up sometimes)
This commit is contained in:
parent
2eaac560e6
commit
2e347ad716
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue