diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-19 12:08:26 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-19 12:08:26 +0300 |
commit | f765b50caed9f2858ddf4e20ba3a6427e4750240 (patch) | |
tree | 0546c4d97d705cf8ceb6e807edfa0b05ab128678 /src/ui/window.c | |
parent | 462e5085392eb78610e9b991ed295f0168a079bb (diff) | |
parent | d2a76230effce8586b7d90beff519e221e744bf7 (diff) |
Merge branch 'dev' into work/typesetter
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 6b9956ea..87db2f3e 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -59,7 +59,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
59 | 59 | ||
60 | static iWindow *theWindow_ = NULL; | 60 | static iWindow *theWindow_ = NULL; |
61 | 61 | ||
62 | #if defined (iPlatformApple) || defined (iPlatformLinux) | 62 | #if defined (iPlatformApple) || defined (iPlatformLinux) || defined (iPlatformOther) |
63 | static float initialUiScale_ = 1.0f; | 63 | static float initialUiScale_ = 1.0f; |
64 | #else | 64 | #else |
65 | static float initialUiScale_ = 1.1f; | 65 | static float initialUiScale_ = 1.1f; |
@@ -1199,6 +1199,11 @@ void swapRoots_Window(iWindow *d) { | |||
1199 | 1199 | ||
1200 | void setSplitMode_Window(iWindow *d, int splitFlags) { | 1200 | void setSplitMode_Window(iWindow *d, int splitFlags) { |
1201 | const int splitMode = splitFlags & mode_WindowSplit; | 1201 | const int splitMode = splitFlags & mode_WindowSplit; |
1202 | if (deviceType_App() == phone_AppDeviceType) { | ||
1203 | /* There isn't enough room on the phone. */ | ||
1204 | /* TODO: Maybe in landscape only? */ | ||
1205 | return; | ||
1206 | } | ||
1202 | iAssert(current_Root() == NULL); | 1207 | iAssert(current_Root() == NULL); |
1203 | if (d->splitMode != splitMode) { | 1208 | if (d->splitMode != splitMode) { |
1204 | int oldCount = numRoots_Window(d); | 1209 | int oldCount = numRoots_Window(d); |