summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 252b3bdb..87db2f3e 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1199,6 +1199,11 @@ void swapRoots_Window(iWindow *d) {
1199 1199
1200void setSplitMode_Window(iWindow *d, int splitFlags) { 1200void 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);