From 074c6ae4caac398b0e94d4088acd48003774fb99 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 27 Aug 2023 22:39:50 +0200 Subject: [PATCH] fixed zoom clamping --- src/emucore/FrameBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emucore/FrameBuffer.cxx b/src/emucore/FrameBuffer.cxx index 4017e2ef7..41b05d83d 100644 --- a/src/emucore/FrameBuffer.cxx +++ b/src/emucore/FrameBuffer.cxx @@ -1239,7 +1239,7 @@ void FrameBuffer::switchVideoMode(int direction) else if(direction == -1) zoom -= ZOOM_STEPS; // Make sure the level is within the allowable desktop size - zoom = BSPF::clampw(zoom, supportedTIAMinZoom(), supportedTIAMaxZoom()); + zoom = BSPF::clamp(zoom, supportedTIAMinZoom(), supportedTIAMaxZoom()); myOSystem.settings().setValue("tia.zoom", zoom); } else