mirror of https://github.com/stella-emu/stella.git
minor code fixes
This commit is contained in:
parent
33c4e81bb0
commit
d08cd7cbbd
|
@ -875,7 +875,7 @@ void FrameBuffer::setAvailableVidModes(uInt32 baseWidth, uInt32 baseHeight)
|
||||||
if(tiaMode)
|
if(tiaMode)
|
||||||
{
|
{
|
||||||
// TIA windowed modes
|
// TIA windowed modes
|
||||||
uInt32 minZoom = 2 * hidpiScaleFactor();
|
uInt32 minZoom = supportedTIAMinZoom();
|
||||||
myTIAMaxZoom = maxZoomForScreen(baseWidth, baseHeight,
|
myTIAMaxZoom = maxZoomForScreen(baseWidth, baseHeight,
|
||||||
myAbsDesktopSize.w, myAbsDesktopSize.h);
|
myAbsDesktopSize.w, myAbsDesktopSize.h);
|
||||||
|
|
||||||
|
|
|
@ -337,9 +337,12 @@ void VideoDialog::loadConfig()
|
||||||
// TIA zoom levels
|
// TIA zoom levels
|
||||||
// These are dynamically loaded, since they depend on the size of
|
// These are dynamically loaded, since they depend on the size of
|
||||||
// the desktop and which renderer we're using
|
// the desktop and which renderer we're using
|
||||||
myTIAZoom->setMinValue(instance().frameBuffer().supportedTIAMinZoom() * 100);
|
float minZoom = instance().frameBuffer().supportedTIAMinZoom(); // or 2 if we allow lower values
|
||||||
myTIAZoom->setMaxValue(instance().frameBuffer().supportedTIAMaxZoom() * 100);
|
float maxZoom = instance().frameBuffer().supportedTIAMaxZoom();
|
||||||
myTIAZoom->setTickmarkIntervals((instance().frameBuffer().supportedTIAMaxZoom() - 2) * 2);
|
|
||||||
|
myTIAZoom->setMinValue(minZoom * 100);
|
||||||
|
myTIAZoom->setMaxValue(maxZoom * 100);
|
||||||
|
myTIAZoom->setTickmarkIntervals((maxZoom - minZoom) * 2); // every ~50%
|
||||||
myTIAZoom->setValue(instance().settings().getFloat("tia.zoom") * 100);
|
myTIAZoom->setValue(instance().settings().getFloat("tia.zoom") * 100);
|
||||||
|
|
||||||
// TIA Palette
|
// TIA Palette
|
||||||
|
|
Loading…
Reference in New Issue