mirror of https://github.com/stella-emu/stella.git
fixed zoom settings via hotkey (made persistent again)
This commit is contained in:
parent
9d72ae2c4e
commit
f4db8e4816
|
@ -150,7 +150,6 @@ bool FrameBuffer::initialize()
|
|||
FBSurface::setPalette(myPalette);
|
||||
|
||||
myGrabMouse = myOSystem.settings().getBool("grabmouse");
|
||||
myZoomMode = myOSystem.settings().getInt("tia.zoom");
|
||||
|
||||
// Create a TIA surface; we need it for rendering TIA images
|
||||
myTIASurface = make_unique<TIASurface>(myOSystem);
|
||||
|
@ -652,7 +651,7 @@ bool FrameBuffer::changeWindowedVidMode(int direction)
|
|||
|
||||
resetSurfaces();
|
||||
showMessage(mode.description);
|
||||
myZoomMode = mode.zoom;
|
||||
myOSystem.settings().setValue("tia.zoom", mode.zoom);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
@ -811,17 +810,11 @@ const VideoMode& FrameBuffer::getSavedVidMode(bool fullscreen)
|
|||
if(state == EventHandlerState::DEBUGGER || state == EventHandlerState::LAUNCHER)
|
||||
myCurrentModeList->setZoom(1);
|
||||
else
|
||||
myCurrentModeList->setZoom(myZoomMode);
|
||||
myCurrentModeList->setZoom(myOSystem.settings().getInt("tia.zoom"));
|
||||
|
||||
return myCurrentModeList->current();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void FrameBuffer::setZoomMode(uInt32 mode)
|
||||
{
|
||||
myZoomMode = mode;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
//
|
||||
// VideoMode implementation
|
||||
|
|
|
@ -192,11 +192,6 @@ class FrameBuffer
|
|||
*/
|
||||
const VariantList& supportedTIAZoomLevels() const { return myTIAZoomLevels; }
|
||||
|
||||
/*
|
||||
Set the current zoom mode.
|
||||
*/
|
||||
void setZoomMode(uInt32 mode);
|
||||
|
||||
/**
|
||||
Get the font object(s) of the framebuffer
|
||||
*/
|
||||
|
@ -528,9 +523,6 @@ class FrameBuffer
|
|||
// Names of the TIA zoom levels that can be used for this framebuffer
|
||||
VariantList myTIAZoomLevels;
|
||||
|
||||
// curently selected zoom mode
|
||||
uInt32 myZoomMode;
|
||||
|
||||
// Holds a reference to all the surfaces that have been created
|
||||
vector<shared_ptr<FBSurface>> mySurfaceList;
|
||||
|
||||
|
|
|
@ -410,7 +410,6 @@ void VideoDialog::saveConfig()
|
|||
// TIA Filter
|
||||
instance().settings().setValue("tia.zoom",
|
||||
myTIAZoom->getSelectedTag().toString());
|
||||
instance().frameBuffer().setZoomMode(instance().settings().getInt("tia.zoom"));
|
||||
|
||||
// TIA Palette
|
||||
instance().settings().setValue("palette",
|
||||
|
|
Loading…
Reference in New Issue