diff options
| author | Chris Apers | 2007-05-01 10:22:35 +0000 | 
|---|---|---|
| committer | Chris Apers | 2007-05-01 10:22:35 +0000 | 
| commit | 4a2b0238494092747afa7336dbb5c5a4af605ef4 (patch) | |
| tree | 57a7db0d4d886fa5770bc926fa9801364d5f802f /backends/platform/PalmOS/Src/launcher/app.cpp | |
| parent | 1c8dcd36801a955f15cb177b54022a389d63782d (diff) | |
| download | scummvm-rg350-4a2b0238494092747afa7336dbb5c5a4af605ef4.tar.gz scummvm-rg350-4a2b0238494092747afa7336dbb5c5a4af605ef4.tar.bz2 scummvm-rg350-4a2b0238494092747afa7336dbb5c5a4af605ef4.zip  | |
Added basic rotation detector
svn-id: r26705
Diffstat (limited to 'backends/platform/PalmOS/Src/launcher/app.cpp')
| -rw-r--r-- | backends/platform/PalmOS/Src/launcher/app.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
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 <PalmOS.h>  #include <SonyClie.h> +#include <SysGlue.h>  #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);  		}  	}  | 
