add poly radar pref
no options menu for this; very obscure and, er, we have no room
This commit is contained in:
@@ -78,6 +78,7 @@ PrefsManager::PrefsManager()
|
|||||||
m_iCoinsPerCredit = 1;
|
m_iCoinsPerCredit = 1;
|
||||||
m_bJointPremium = false;
|
m_bJointPremium = false;
|
||||||
m_iBoostAppPriority = -1;
|
m_iBoostAppPriority = -1;
|
||||||
|
m_iPolygonRadar = -1;
|
||||||
|
|
||||||
/* I'd rather get occasional people asking for support for this even though it's
|
/* I'd rather get occasional people asking for support for this even though it's
|
||||||
* already here than lots of people asking why songs aren't being displayed. */
|
* already here than lots of people asking why songs aren't being displayed. */
|
||||||
@@ -148,6 +149,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
|||||||
ini.GetValueI( "Options", "CoinsPerCredit", m_iCoinsPerCredit );
|
ini.GetValueI( "Options", "CoinsPerCredit", m_iCoinsPerCredit );
|
||||||
ini.GetValueB( "Options", "JointPremium", m_bJointPremium );
|
ini.GetValueB( "Options", "JointPremium", m_bJointPremium );
|
||||||
ini.GetValueI( "Options", "BoostAppPriority", m_iBoostAppPriority );
|
ini.GetValueI( "Options", "BoostAppPriority", m_iBoostAppPriority );
|
||||||
|
ini.GetValueI( "Options", "PolygonRadar", m_iPolygonRadar );
|
||||||
|
|
||||||
m_asAdditionalSongFolders.clear();
|
m_asAdditionalSongFolders.clear();
|
||||||
CString sAdditionalSongFolders;
|
CString sAdditionalSongFolders;
|
||||||
@@ -213,6 +215,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
|
|||||||
ini.SetValueI( "Options", "CoinsPerCredit", m_iCoinsPerCredit );
|
ini.SetValueI( "Options", "CoinsPerCredit", m_iCoinsPerCredit );
|
||||||
ini.SetValueB( "Options", "JointPremium", m_bJointPremium );
|
ini.SetValueB( "Options", "JointPremium", m_bJointPremium );
|
||||||
ini.SetValueI( "Options", "BoostAppPriority", m_iBoostAppPriority );
|
ini.SetValueI( "Options", "BoostAppPriority", m_iBoostAppPriority );
|
||||||
|
ini.SetValueI( "Options", "PolygonRadar", m_iPolygonRadar );
|
||||||
|
|
||||||
/* Only write these if they aren't the default. This ensures that we can change
|
/* Only write these if they aren't the default. This ensures that we can change
|
||||||
* the default and have it take effect for everyone (except people who
|
* the default and have it take effect for everyone (except people who
|
||||||
|
|||||||
@@ -63,9 +63,13 @@ public:
|
|||||||
bool m_bJointPremium;
|
bool m_bJointPremium;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* 0 = no; 1 = yes; -1 = auto (do whatever is appropriate for the arch). */
|
/* 0 = no; 1 = yes; -1 = auto (do whatever is appropriate for the arch). */
|
||||||
int m_iBoostAppPriority;
|
int m_iBoostAppPriority;
|
||||||
|
|
||||||
|
/* 0 = no; 1 = yes; -1 = auto (turn on for known-bad drivers) */
|
||||||
|
int m_iPolygonRadar;
|
||||||
|
|
||||||
CStringArray m_asAdditionalSongFolders;
|
CStringArray m_asAdditionalSongFolders;
|
||||||
CString m_DWIPath;
|
CString m_DWIPath;
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
#include "RageTypes.h"
|
#include "RageTypes.h"
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
#include "StepMania.h"
|
#include "StepMania.h"
|
||||||
|
/* XXX: remove this once we add oglspecs_t::DisableAALines */
|
||||||
|
#include "PrefsManager.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
@@ -576,9 +578,11 @@ void RageDisplay::DrawLoop_LinesAndPoints( const RageVertex v[], int iNumVerts,
|
|||||||
|
|
||||||
void RageDisplay::DrawLoop( const RageVertex v[], int iNumVerts, float LineWidth )
|
void RageDisplay::DrawLoop( const RageVertex v[], int iNumVerts, float LineWidth )
|
||||||
{
|
{
|
||||||
/* XXX: need to autodetect voodoo 3500 (and any others that need this) */
|
/* XXX: -1, 0, 1 */
|
||||||
// DrawLoop_LinesAndPoints(v, iNumVerts, LineWidth);
|
if(PREFSMAN->m_iPolygonRadar == 1)
|
||||||
DrawLoop_Polys(v, iNumVerts, LineWidth);
|
DrawLoop_Polys(v, iNumVerts, LineWidth);
|
||||||
|
else
|
||||||
|
DrawLoop_LinesAndPoints(v, iNumVerts, LineWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RageDisplay::PushMatrix()
|
void RageDisplay::PushMatrix()
|
||||||
|
|||||||
Reference in New Issue
Block a user