aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/display_manager.h
diff options
context:
space:
mode:
authorYotam Barnoy2010-08-17 09:45:14 +0000
committerYotam Barnoy2010-08-17 09:45:14 +0000
commitaa16c9e04699e9f441db071d7e27ebfcad17074c (patch)
tree99b6d877a76b827b8e9bd10859df0bdd24cf6c4b /backends/platform/psp/display_manager.h
parent06960d33e15bc80f9912fa92f11dd82388199bd6 (diff)
downloadscummvm-rg350-aa16c9e04699e9f441db071d7e27ebfcad17074c.tar.gz
scummvm-rg350-aa16c9e04699e9f441db071d7e27ebfcad17074c.tar.bz2
scummvm-rg350-aa16c9e04699e9f441db071d7e27ebfcad17074c.zip
PSP: changed display options to Full Screen, Keep Aspect Ratio and Original Resolution
This greatly simplifies the display options and makes them more practical. Original resolution will try to fit the game to the screen pixel-to-pixel, and will revert to full screen if it fails. Keep AR maximizes height and adjusts the width accordingly. This works very well with 320x200 games (AR of 1.6) which is close to the PSP's 1.7, but not so well with 320x240/640x480 (AR of 1.3). Full Screen is still default. svn-id: r52138
Diffstat (limited to 'backends/platform/psp/display_manager.h')
-rw-r--r--backends/platform/psp/display_manager.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/backends/platform/psp/display_manager.h b/backends/platform/psp/display_manager.h
index 1f7320902c..f52541e615 100644
--- a/backends/platform/psp/display_manager.h
+++ b/backends/platform/psp/display_manager.h
@@ -61,10 +61,9 @@ class PSPKeyboard;
class DisplayManager {
public:
enum GraphicsModeID { ///> Possible output formats onscreen
- CENTERED_320X200,
- CENTERED_435X272,
- STRETCHED_480X272,
- CENTERED_362X272
+ ORIGINAL_RESOLUTION,
+ KEEP_ASPECT_RATIO,
+ STRETCHED_FULL_SCREEN
};
DisplayManager() : _screen(0), _cursor(0), _overlay(0), _keyboard(0), _lastUpdateTime(0), _graphicsMode(0) {}
~DisplayManager();
@@ -74,7 +73,7 @@ public:
bool setGraphicsMode(int mode);
bool setGraphicsMode(const char *name);
int getGraphicsMode() const { return _graphicsMode; }
- uint32 getDefaultGraphicsMode() const { return STRETCHED_480X272; }
+ uint32 getDefaultGraphicsMode() const { return STRETCHED_FULL_SCREEN; }
const OSystem::GraphicsMode* getSupportedGraphicsModes() const { return _supportedModes; }
// Setters