fixed garbage in fullscreen mode

fixed breakpoints flickering in RomListWidget
fixed palette update in VideoAudioDialog
This commit is contained in:
thrust26 2020-11-15 08:59:18 +01:00
parent 85d0c9227c
commit e01d8e57a5
3 changed files with 15 additions and 0 deletions

View File

@ -491,6 +491,8 @@ void RomListWidget::drawWidget(bool hilite)
checkBreakPoint(dlist[pos].address,
instance().debugger().cartDebug().getBank(dlist[pos].address)));
myCheckList[i]->setDirty();
// draw immediately, because chain order is not deterministic
myCheckList[i]->draw();
// Draw highlighted item in a frame
if(_highlightedItem == pos)

View File

@ -122,6 +122,10 @@ void DialogContainer::render()
if(myDialogStack.empty())
return;
// Make sure we start in a clean state (with zero'ed buffers)
if(!myOSystem.eventHandler().inTIAMode())
myOSystem.frameBuffer().clear();
cerr << "full re-render " << typeid(*this).name() << endl;
// Make sure we start in a clean state (with zero'ed buffers)

View File

@ -959,7 +959,16 @@ void VideoAudioDialog::handlePaletteUpdate()
instance().frameBuffer().tiaSurface().paletteHandler().setAdjustables(paletteAdj);
if(instance().hasConsole())
{
instance().frameBuffer().tiaSurface().paletteHandler().setPalette();
constexpr int NUM_LUMA = 8;
constexpr int NUM_CHROMA = 16;
for(int idx = 0; idx < NUM_CHROMA; ++idx)
for(int lum = 0; lum < NUM_LUMA; ++lum)
myColor[idx][lum]->setDirty();
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -