From 776c1609e3e4a6c708cad1b2a0e6500041cb6515 Mon Sep 17 00:00:00 2001 From: Renaud Lepage Date: Thu, 9 Sep 2004 23:10:34 +0000 Subject: [PATCH] Put back Xbox centering options - needed to resize the screen manually --- stepmania/src/PrefsManager.cpp | 17 +++++++++++++++++ stepmania/src/PrefsManager.h | 7 +++++++ 2 files changed, 24 insertions(+) diff --git a/stepmania/src/PrefsManager.cpp b/stepmania/src/PrefsManager.cpp index c89e5f7a73..19c7e6342e 100644 --- a/stepmania/src/PrefsManager.cpp +++ b/stepmania/src/PrefsManager.cpp @@ -236,6 +236,11 @@ void PrefsManager::Init() m_bPAL = false; #ifdef _XBOX m_bInterlaced = true; + m_fScreenPosX = 0; + m_fScreenPosY = 0; + m_fScreenWidth = 640; + m_fScreenHeight = 480; + resizing = false; #else m_bInterlaced = false; #endif @@ -326,6 +331,12 @@ void PrefsManager::ReadPrefsFromFile( CString sIni ) ini.GetValue( "Options", "Windowed", m_bWindowed ); ini.GetValue( "Options", "Interlaced", m_bInterlaced ); ini.GetValue( "Options", "PAL", m_bPAL ); +#ifdef _XBOX + ini.GetValue( "Options", "ScreenPosX", m_fScreenPosX ); + ini.GetValue( "Options", "ScreenPosY", m_fScreenPosY ); + ini.GetValue( "Options", "ScreenWidth", m_fScreenWidth ); + ini.GetValue( "Options", "ScreenHeight", m_fScreenHeight ); +#endif ini.GetValue( "Options", "CelShadeModels", m_bCelShadeModels ); ini.GetValue( "Options", "ConstantUpdateDeltaSeconds", m_fConstantUpdateDeltaSeconds ); ini.GetValue( "Options", "DisplayWidth", m_iDisplayWidth ); @@ -662,6 +673,12 @@ void PrefsManager::SaveGlobalPrefsToDisk() const ini.SetValue( "Options", "Vsync", m_bVsync ); ini.SetValue( "Options", "Interlaced", m_bInterlaced ); ini.SetValue( "Options", "PAL", m_bPAL ); +#ifdef _XBOX + ini.SetValue( "Options", "ScreenPosX", m_fScreenPosX ); + ini.SetValue( "Options", "ScreenPosY", m_fScreenPosY ); + ini.SetValue( "Options", "ScreenWidth", m_fScreenWidth ); + ini.SetValue( "Options", "ScreenHeight", m_fScreenHeight ); +#endif ini.SetValue( "Options", "HowToPlay", m_bInstructions ); ini.SetValue( "Options", "Caution", m_bShowDontDie ); ini.SetValue( "Options", "ShowSelectGroup", m_bShowSelectGroup ); diff --git a/stepmania/src/PrefsManager.h b/stepmania/src/PrefsManager.h index 0bb00062b8..75f7ba5c45 100644 --- a/stepmania/src/PrefsManager.h +++ b/stepmania/src/PrefsManager.h @@ -32,6 +32,13 @@ public: bool m_bVsync; bool m_bInterlaced; bool m_bPAL; +#ifdef _XBOX + float m_fScreenPosX; + float m_fScreenPosY; + float m_fScreenWidth; + float m_fScreenHeight; + bool resizing; // true when in the screen center screen +#endif bool m_bDelayedTextureDelete; bool m_bTexturePreload; bool m_bDelayedScreenLoad;