1
0
Fork 0

GUI: Eliminate flicker in infobox when scrolling

This commit is contained in:
Nukem 2015-11-15 01:50:12 -05:00
parent 6e97553315
commit 9f530c39a3
1 changed files with 7 additions and 2 deletions

View File

@ -35,6 +35,7 @@ void CPUInfoBox::setInfoLine(int line, QString text)
{
if(line < 0 || line > 2)
return;
setCellContent(line, 0, text);
reloadData();
}
@ -42,7 +43,8 @@ void CPUInfoBox::setInfoLine(int line, QString text)
QString CPUInfoBox::getInfoLine(int line)
{
if(line < 0 || line > 2)
return QString();
return "";
return getCellContent(line, 0);
}
@ -97,7 +99,10 @@ void CPUInfoBox::disasmSelectionChanged(dsint parVA)
curAddr = parVA;
if(!DbgIsDebugging() || !DbgMemIsValidReadPtr(parVA))
return;
clear();
// Rather than using clear() or setInfoLine(), only reset the first two cells to reduce flicker
setCellContent(0, 0, "");
setCellContent(1, 0, "");
DISASM_INSTR instr;
memset(&instr, 0, sizeof(instr));