fixed crash in Audio & Video dialog when opened from debugger

This commit is contained in:
thrust26 2020-06-17 22:42:54 +02:00
parent f1998c761c
commit 0816f25ee5
2 changed files with 17 additions and 16 deletions

View File

@ -33,6 +33,10 @@
* Fixed some bugs in 3E+ scheme when using non-standard ROM sizes.
* Fixed custom palette and TV effects adjustable slider rounding issue.
* Fixed crash in Audio & Video dialog when opened from debugger.
* Updated documentation for changes in ROM properties key names.
* The codebase now compiles under gcc6 again. Future versions will

View File

@ -1005,8 +1005,6 @@ void VideoAudioDialog::handleCommand(CommandSender* sender, int cmd,
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void VideoAudioDialog::addPalette(int x, int y, int w, int h)
{
if(instance().hasConsole())
{
constexpr int NUM_LUMA = 8;
constexpr int NUM_CHROMA = 16;
const GUI::Font& ifont = instance().frameBuffer().infoFont();
@ -1024,7 +1022,6 @@ void VideoAudioDialog::addPalette(int x, int y, int w, int h)
COLW + 1, COLH + 1, 0, false);
}
}
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -