mirror of https://github.com/stella-emu/stella.git
minor fix, make sure that a message is displayed when switching TV format
This commit is contained in:
parent
77ac37e706
commit
63f1414007
|
@ -74,7 +74,7 @@ class PaletteHandler
|
|||
Increase or decrease given palette adjustable.
|
||||
|
||||
@param adjustable The adjustable to change
|
||||
@param direction +1 indicates increase, -1 indicates decrease.
|
||||
@param direction +1 indicates increase, -1 indicates decrease.
|
||||
*/
|
||||
void changeAdjustable(int adjustable, int direction);
|
||||
|
||||
|
|
|
@ -373,7 +373,7 @@ void Console::setFormat(uInt32 format, bool force)
|
|||
{
|
||||
case 0: // auto-detect
|
||||
{
|
||||
if (myFormatAutodetected) return;
|
||||
if (!force && myFormatAutodetected) return;
|
||||
|
||||
myDisplayFormat = formatFromFilename();
|
||||
if (myDisplayFormat == "AUTO")
|
||||
|
|
|
@ -456,6 +456,9 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
|
|||
// Get (and display) the previous|next adjustment function,
|
||||
// but do not change its value
|
||||
cycleAdjustSetting(adjustActive ? direction : 0)(0);
|
||||
// Fallback message when no message is displayed by method
|
||||
//if(!myOSystem.frameBuffer().messageShown())
|
||||
// myOSystem.frameBuffer().showMessage("Message " + std::to_string(int(myAdjustSetting)));
|
||||
myAdjustActive = true;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -311,11 +311,11 @@ void VideoAudioDialog::addTVEffectsTab()
|
|||
CREATE_CUSTOM_SLIDERS(ScanIntense, "Intensity", kScanlinesChanged)
|
||||
|
||||
// Create buttons in 2nd column
|
||||
xpos = myTVSharp->getRight() + fontWidth * 2;
|
||||
int cloneWidth = _font.getStringWidth("Clone Bad Adjust") + fontWidth * 2.5;
|
||||
xpos = _w - HBORDER - 2 * 2 - cloneWidth;
|
||||
ypos = VBORDER - VGAP / 2;
|
||||
|
||||
// Adjustable presets
|
||||
int cloneWidth = _font.getStringWidth("Clone Bad Adjust") + fontWidth * 2.5;
|
||||
#define CREATE_CLONE_BUTTON(obj, desc) \
|
||||
myClone ## obj = \
|
||||
new ButtonWidget(myTab, _font, xpos, ypos, cloneWidth, buttonHeight,\
|
||||
|
|
Loading…
Reference in New Issue