Minor cleanup of PanelFloppy

This commit is contained in:
Dimitris Panokostas 2017-02-24 01:53:22 +01:00
parent 0bef9bf057
commit f16687a090

View file

@ -271,7 +271,7 @@ class DriveSpeedSliderActionListener : public gcn::ActionListener
public:
void action(const gcn::ActionEvent& actionEvent) override
{
changed_prefs.floppy_speed = drivespeedvalues[(int)sldDriveSpeed->getValue()];
changed_prefs.floppy_speed = drivespeedvalues[int(sldDriveSpeed->getValue())];
RefreshPanelFloppy();
}
};
@ -384,7 +384,6 @@ void InitPanelFloppy(const struct _ConfigCategory& category)
chkDFxWriteProtect[i] = new gcn::UaeCheckBox("Write-protected");
chkDFxWriteProtect[i]->addActionListener(dfxCheckActionListener);
//chkDFxWriteProtect[i]->setEnabled(false);
cmdDFxInfo[i] = new gcn::Button("?");
cmdDFxInfo[i]->setSize(SMALL_BUTTON_WIDTH, SMALL_BUTTON_HEIGHT);