Change progressive -> interlaced. Not Xbox-only. (Avoid making

RageDisplay interfaces arch-specific.)
This commit is contained in:
Glenn Maynard
2003-08-12 19:08:07 +00:00
parent 49fd8b0a24
commit 1913fddee0
5 changed files with 33 additions and 29 deletions
+7 -3
View File
@@ -125,9 +125,13 @@ PrefsManager::PrefsManager()
* already here than lots of people asking why songs aren't being displayed. */
m_bHiddenSongs = false;
m_bVsync = true;
/* XXX: Set these defaults for individual consoles using VideoCardDefaults.ini. */
#ifdef _XBOX
m_bProgressive = false;
m_bInterlaced = true;
m_bPAL = false;
#else
m_bInterlaced = false;
#endif
m_sSoundDrivers = DEFAULT_SOUND_DRIVER_LIST;
@@ -161,8 +165,8 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
return; // could not read config file, load nothing
ini.GetValueB( "Options", "Windowed", m_bWindowed );
ini.GetValueB( "Options", "Interlaced", m_bInterlaced );
#ifdef _XBOX
ini.GetValueB( "Options", "ProgressiveScan", m_bProgressive );
ini.GetValueB( "Options", "PAL", m_bPAL );
#endif
ini.GetValueI( "Options", "DisplayWidth", m_iDisplayWidth );
@@ -303,8 +307,8 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValueB( "Options", "DelayedEscape", m_bDelayedEscape );
ini.SetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.SetValueB( "Options", "Vsync", m_bVsync );
ini.SetValueB( "Options", "Interlaced", m_bInterlaced );
#ifdef _XBOX
ini.SetValueB( "Options", "ProgressiveScan", m_bProgressive );
ini.SetValueB( "Options", "PAL", m_bPAL );
#endif
ini.SetValueB( "Options", "HowToPlay", m_bInstructions );
+1 -1
View File
@@ -34,8 +34,8 @@ public:
int m_iMovieDecodeMS;
bool m_bHiddenSongs;
bool m_bVsync;
bool m_bInterlaced;
#ifdef _XBOX
bool m_bProgressive;
bool m_bPAL;
#endif
bool m_bDelayedTextureDelete;
+23 -23
View File
@@ -70,33 +70,33 @@ public:
// Initialize with a constructor so to guarantee all paramters
// are filled (in case new params are added).
VideoModeParams(
bool _windowed,
int _width,
int _height,
int _bpp,
int _rate,
bool _vsync,
bool _bAntiAliasing,
CString _sWindowTitle,
CString _sIconFile
bool windowed_,
int width_,
int height_,
int bpp_,
int rate_,
bool vsync_,
bool interlaced_,
bool bAntiAliasing_,
CString sWindowTitle_,
CString sIconFile_
#ifdef _XBOX
, bool _progressive
, bool _PAL
, bool PAL_
#endif
)
{
windowed = _windowed;
width = _width;
height = _height;
bpp = _bpp;
rate = _rate;
vsync = _vsync;
bAntiAliasing = _bAntiAliasing;
sWindowTitle = _sWindowTitle;
sIconFile = _sIconFile;
windowed = windowed_;
width = width_;
height = height_;
bpp = bpp_;
rate = rate_;
vsync = vsync_;
interlaced = interlaced_;
bAntiAliasing = bAntiAliasing_;
sWindowTitle = sWindowTitle_;
sIconFile = sIconFile_;
#ifdef _XBOX
progressive = _progressive;
PAL = _PAL;
PAL = PAL_;
#endif
}
VideoModeParams() {}
@@ -108,8 +108,8 @@ public:
int rate;
bool vsync;
bool bAntiAliasing;
bool interlaced;
#ifdef _XBOX
bool progressive;
bool PAL;
#endif
CString sWindowTitle;
+1 -1
View File
@@ -486,7 +486,7 @@ bool RageDisplay_D3D::TryVideoMode( VideoModeParams p, bool &bNewDeviceOut )
g_d3dpp.Flags = 0;
g_d3dpp.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;
#else
g_d3dpp.Flags = (p.progressive ? D3DPRESENTFLAG_PROGRESSIVE : D3DPRESENTFLAG_INTERLACED) | D3DPRESENTFLAG_10X11PIXELASPECTRATIO;
g_d3dpp.Flags = (p.interlaced? D3DPRESENTFLAG_INTERLACED: D3DPRESENTFLAG_PROGRESSIVE ) | D3DPRESENTFLAG_10X11PIXELASPECTRATIO;
g_d3dpp.FullScreen_RefreshRateInHz = p.PAL ? 50 : 60;
#endif
+1 -1
View File
@@ -106,11 +106,11 @@ static RageDisplay::VideoModeParams GetCurVideoModeParams()
PREFSMAN->m_iDisplayColorDepth,
PREFSMAN->m_iRefreshRate,
PREFSMAN->m_bVsync,
PREFSMAN->m_bInterlaced,
PREFSMAN->m_bAntiAliasing,
THEME->GetMetric("Common","WindowTitle"),
THEME->GetPathToG("Common window icon")
#ifdef _XBOX
, PREFSMAN->m_bProgressive
, PREFSMAN->m_bPAL
#endif
);