minor code cleanups

This commit is contained in:
Thomas Jentzsch 2021-09-25 11:00:59 +02:00
parent 187979a2ae
commit 9a36e3f6ad
3 changed files with 6 additions and 8 deletions

View File

@ -149,7 +149,7 @@ string CartridgeE7Widget::bankState()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt32 CartridgeE7Widget::internalRamSize()
{
return 2048;
return myCart.RAM_SIZE;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -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;

View File

@ -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;