Maelstrom: If the logical scale isn't set, then for calculation purposes it's 1.0

https://github.com/libsdl-org/Maelstrom/commit/0162b7d4277e3290269189e722098d1ef281a4b4

From 0162b7d4277e3290269189e722098d1ef281a4b4 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 12 Oct 2012 02:46:31 -0700
Subject: [PATCH] If the logical scale isn't set, then for calculation purposes
 it's 1.0

---
 screenlib/SDL_FrameBuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/screenlib/SDL_FrameBuf.h b/screenlib/SDL_FrameBuf.h
index cd77aee0..88785abb 100644
--- a/screenlib/SDL_FrameBuf.h
+++ b/screenlib/SDL_FrameBuf.h
@@ -112,7 +112,7 @@ class FrameBuf : public ErrorBase {
 	void GetLogicalSize(int &w, int &h) const;
 	void SetLogicalSize(int w, int h);
 	float GetLogicalScale() const {
-		return logicalScale;
+		return logicalScale ? logicalScale : 1.0f;
 	}
 	void SetLogicalScale(float scale);