From 4a2b0238494092747afa7336dbb5c5a4af605ef4 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Tue, 1 May 2007 10:22:35 +0000 Subject: Added basic rotation detector svn-id: r26705 --- backends/platform/PalmOS/Src/launcher/app.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backends/platform/PalmOS/Src/launcher') diff --git a/backends/platform/PalmOS/Src/launcher/app.cpp b/backends/platform/PalmOS/Src/launcher/app.cpp index ea028e6b7f..7f1fb4a9b5 100644 --- a/backends/platform/PalmOS/Src/launcher/app.cpp +++ b/backends/platform/PalmOS/Src/launcher/app.cpp @@ -1,7 +1,7 @@ /* ScummVM - Scumm Interpreter * Copyright (C) 2001 Ludvig Strigeus - * Copyright (C) 2001-2006 The ScummVM project - * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend + * Copyright (C) 2001-2007 The ScummVM project + * Copyright (C) 2002-2007 Chris Apers - PalmOS Backend * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -24,6 +24,7 @@ #include #include +#include #include "StarterRsc.h" #include "palmdefs.h" @@ -172,6 +173,7 @@ static void AppStartCheckScreenSize() { OPTIONS_RST(kOptCollapsible); OPTIONS_RST(kOptModeWide); OPTIONS_RST(kOptModeLandscape); + OPTIONS_RST(kOptModeRotatable); // we are on a sony device if (OPTIONS_TST(kOptDeviceClie)) { @@ -186,6 +188,8 @@ static void AppStartCheckScreenSize() { OPTIONS_SET(kOptCollapsible); OPTIONS_SET(kOptModeWide); OPTIONS_SET((mode == PALM_LANDSCAPE) ? kOptModeLandscape : kOptNone); + // TODO: doesn't work with Sony + OPTIONS_SET(SysGlueTrapExists(pinSysSetOrientation) ? kOptModeRotatable :kOptNone); } } -- cgit v1.2.3