From 0982141442f3f7ef48b741847a117761d4da11be Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 8 Jun 2021 17:52:39 -0400 Subject: [PATCH] Corrects many minor errors. --- OSBindings/Qt/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OSBindings/Qt/mainwindow.cpp b/OSBindings/Qt/mainwindow.cpp index b2a1c8e40..5a3f791bc 100644 --- a/OSBindings/Qt/mainwindow.cpp +++ b/OSBindings/Qt/mainwindow.cpp @@ -673,7 +673,7 @@ void MainWindow::toggleAtari2600Switch(Atari2600Switch toggleSwitch) { void MainWindow::addAppleIIMenu() { // Add the standard display settings. - addDisplayMenu(settingsPrefix, "Colour", "Monochrome", "", ""); + addDisplayMenu("appleII", "Colour", "Monochrome", "", ""); // Add an additional tick box, for square pixels. QAction *const squarePixelsAction = new QAction(tr("Square Pixels")); @@ -693,16 +693,16 @@ void MainWindow::addAppleIIMenu() { // Establish initial selection. Settings settings; const bool useSquarePixels = settings.value("appleII.squarePixels").toBool(); - squarePixelsAction->setIsChecked(useSquarePixels); + squarePixelsAction->setChecked(useSquarePixels); setAppleIISquarePixels(useSquarePixels); } void MainWindow::setAppleIISquarePixels(bool squarePixels) { - const auto configurable = dynamic_cast(machine->raw_pointer()); + Configurable::Device *const configurable = machine->configurable_device(); auto options = configurable->get_options(); - auto appleii_configurable = static_cast(options.get()); + auto appleii_options = static_cast(options.get()); - appleii_configurable->use_square_pixels = squarePixelsAction->isChecked(); + appleii_options->use_square_pixels = squarePixels; configurable->set_options(options); }