minor code cleanups

This commit is contained in:
Thomas Jentzsch 2021-09-25 11:00:59 +02:00
parent 0dd1d9b39f
commit 16d870e067
3 changed files with 6 additions and 8 deletions

View File

@ -149,7 +149,7 @@ string CartridgeE7Widget::bankState()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt32 CartridgeE7Widget::internalRamSize() 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, CartridgeE7Widget(GuiObject* boss, const GUI::Font& lfont,
const GUI::Font& nfont, const GUI::Font& nfont,
int x, int y, int w, int h, int x, int y, int w, int h,
//CartridgeE7& cart);
CartridgeE7& cart); CartridgeE7& cart);
~CartridgeE7Widget() override = default; ~CartridgeE7Widget() override = default;
protected: protected:
//CartridgeE7& myCart;
CartridgeE7& myCart; CartridgeE7& myCart;
PopUpWidget *myLower2K{nullptr}, *myUpper256B{nullptr}; PopUpWidget *myLower2K{nullptr}, *myUpper256B{nullptr};
@ -55,8 +53,8 @@ class CartridgeE7Widget : public CartDebugWidget
protected: protected:
void initialize(GuiObject* boss, CartridgeE7& cart, ostringstream& info); void initialize(GuiObject* boss, CartridgeE7& cart, ostringstream& info);
virtual const char* getSpotLower(int idx); const char* getSpotLower(int idx);
virtual const char* getSpotUpper(int idx); const char* getSpotUpper(int idx);
private: private:
void saveOldState() override; void saveOldState() override;

View File

@ -114,7 +114,7 @@ void DeveloperDialog::addEmulationTab(const GUI::Font& font)
wid.push_back(myFrameStatsWidget); wid.push_back(myFrameStatsWidget);
myDetectedInfoWidget = new CheckboxWidget(myTab, font, myDetectedInfoWidget = new CheckboxWidget(myTab, font,
myFrameStatsWidget->getRight() + fontWidth * 2.5, ypos + 1, myFrameStatsWidget->getRight() + fontWidth * 3, ypos + 1,
"Detected settings info"); "Detected settings info");
myDetectedInfoWidget->setToolTip("Display detected controllers, bankswitching\n" myDetectedInfoWidget->setToolTip("Display detected controllers, bankswitching\n"
"and TV types at ROM start."); "and TV types at ROM start.");
@ -146,7 +146,7 @@ void DeveloperDialog::addEmulationTab(const GUI::Font& font)
"most classic bankswitching types."); "most classic bankswitching types.");
wid.push_back(myRandomBankWidget); wid.push_back(myRandomBankWidget);
myRandomizeTIAWidget = new CheckboxWidget(myTab, font, myRandomBankWidget->getRight() + fontWidth * 2.5, ypos + 1, myRandomizeTIAWidget = new CheckboxWidget(myTab, font, myDetectedInfoWidget->getLeft(), ypos + 1,
"Randomize TIA"); "Randomize TIA");
wid.push_back(myRandomizeTIAWidget); wid.push_back(myRandomizeTIAWidget);
ypos += lineHeight + VGAP; ypos += lineHeight + VGAP;