mirror of https://github.com/stella-emu/stella.git
minor code cleanups
This commit is contained in:
parent
0dd1d9b39f
commit
16d870e067
|
@ -149,7 +149,7 @@ string CartridgeE7Widget::bankState()
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
uInt32 CartridgeE7Widget::internalRamSize()
|
uInt32 CartridgeE7Widget::internalRamSize()
|
||||||
{
|
{
|
||||||
return 2048;
|
return myCart.RAM_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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,8 +146,8 @@ 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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue