diff --git a/src/debugger/gui/CartE7Widget.cxx b/src/debugger/gui/CartE7Widget.cxx index 5564adb95..cbd97e86a 100644 --- a/src/debugger/gui/CartE7Widget.cxx +++ b/src/debugger/gui/CartE7Widget.cxx @@ -149,7 +149,7 @@ string CartridgeE7Widget::bankState() // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uInt32 CartridgeE7Widget::internalRamSize() { - return 2048; + return myCart.RAM_SIZE; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/debugger/gui/CartE7Widget.hxx b/src/debugger/gui/CartE7Widget.hxx index 64940aeb6..cbe56fdaa 100644 --- a/src/debugger/gui/CartE7Widget.hxx +++ b/src/debugger/gui/CartE7Widget.hxx @@ -29,12 +29,10 @@ class CartridgeE7Widget : public CartDebugWidget CartridgeE7Widget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& nfont, int x, int y, int w, int h, - //CartridgeE7& cart); CartridgeE7& cart); ~CartridgeE7Widget() override = default; protected: - //CartridgeE7& myCart; CartridgeE7& myCart; PopUpWidget *myLower2K{nullptr}, *myUpper256B{nullptr}; @@ -55,8 +53,8 @@ class CartridgeE7Widget : public CartDebugWidget protected: void initialize(GuiObject* boss, CartridgeE7& cart, ostringstream& info); - virtual const char* getSpotLower(int idx); - virtual const char* getSpotUpper(int idx); + const char* getSpotLower(int idx); + const char* getSpotUpper(int idx); private: void saveOldState() override; diff --git a/src/gui/DeveloperDialog.cxx b/src/gui/DeveloperDialog.cxx index 919fd295e..f37525597 100644 --- a/src/gui/DeveloperDialog.cxx +++ b/src/gui/DeveloperDialog.cxx @@ -114,7 +114,7 @@ void DeveloperDialog::addEmulationTab(const GUI::Font& font) wid.push_back(myFrameStatsWidget); myDetectedInfoWidget = new CheckboxWidget(myTab, font, - myFrameStatsWidget->getRight() + fontWidth * 2.5, ypos + 1, + myFrameStatsWidget->getRight() + fontWidth * 3, ypos + 1, "Detected settings info"); myDetectedInfoWidget->setToolTip("Display detected controllers, bankswitching\n" "and TV types at ROM start."); @@ -146,8 +146,8 @@ void DeveloperDialog::addEmulationTab(const GUI::Font& font) "most classic bankswitching types."); wid.push_back(myRandomBankWidget); - myRandomizeTIAWidget = new CheckboxWidget(myTab, font, myRandomBankWidget->getRight() + fontWidth * 2.5, ypos + 1, - "Randomize TIA"); + myRandomizeTIAWidget = new CheckboxWidget(myTab, font, myDetectedInfoWidget->getLeft(), ypos + 1, + "Randomize TIA"); wid.push_back(myRandomizeTIAWidget); ypos += lineHeight + VGAP;