[Glide64] Make adjust_aspect private
This commit is contained in:
parent
4dbcd47569
commit
19cfdc174a
|
@ -157,7 +157,7 @@ void _ChangeSize()
|
|||
|
||||
rdp.vi_width = (hend - hstart) * fscale_x;
|
||||
rdp.vi_height = (vend - vstart) * fscale_y * 1.0126582f;
|
||||
float aspect = (g_settings->adjust_aspect && (fscale_y > fscale_x) && (rdp.vi_width > rdp.vi_height)) ? fscale_x / fscale_y : 1.0f;
|
||||
float aspect = (g_settings->adjust_aspect() && (fscale_y > fscale_x) && (rdp.vi_width > rdp.vi_height)) ? fscale_x / fscale_y : 1.0f;
|
||||
|
||||
WriteTrace(TraceResolution, TraceDebug, "hstart: %d, hend: %d, vstart: %d, vend: %d", hstart, hend, vstart, vend);
|
||||
WriteTrace(TraceResolution, TraceDebug, "size: %d x %d", (int)rdp.vi_width, (int)rdp.vi_height);
|
||||
|
|
|
@ -73,7 +73,7 @@ CSettings::CSettings() :
|
|||
m_force_quad3d(false), //force 0xb5 command to be quad, not line 3d
|
||||
m_clip_zmin(false), //enable near z clipping
|
||||
m_clip_zmax(false), //enable far plane clipping;
|
||||
adjust_aspect(0), //adjust screen aspect for wide screen mode
|
||||
m_adjust_aspect(false), //adjust screen aspect for wide screen mode
|
||||
force_calc_sphere(0), //use spheric mapping only, Ridge Racer 64
|
||||
pal230(0), //set special scale for PAL games
|
||||
correct_viewport(0), //correct viewport values
|
||||
|
@ -175,7 +175,7 @@ void CSettings::RegisterSettings(void)
|
|||
game_setting(Set_clip_zmin, "clip_zmin", false);
|
||||
game_setting(Set_clip_zmax, "clip_zmax", true);
|
||||
game_setting(Set_fast_crc, "fast_crc", true);
|
||||
game_setting(Set_adjust_aspect, "adjust_aspect", 1);
|
||||
game_setting(Set_adjust_aspect, "adjust_aspect", true);
|
||||
game_setting(Set_zmode_compare_less, "zmode_compare_less", 0);
|
||||
game_setting(Set_old_style_adither, "old_style_adither", 0);
|
||||
game_setting(Set_n64_z_scale, "n64_z_scale", 0);
|
||||
|
@ -728,7 +728,7 @@ void CSettings::ReadGameSettings(const char * name)
|
|||
m_clip_zmin = GetSetting(Set_clip_zmin) != 0;
|
||||
m_clip_zmax = GetSetting(Set_clip_zmax) != 0;
|
||||
m_fast_crc = GetSetting(Set_fast_crc) != 0;
|
||||
g_settings->adjust_aspect = GetSetting(Set_adjust_aspect);
|
||||
m_adjust_aspect = GetSetting(Set_adjust_aspect);
|
||||
g_settings->zmode_compare_less = GetSetting(Set_zmode_compare_less);
|
||||
g_settings->old_style_adither = GetSetting(Set_old_style_adither);
|
||||
g_settings->n64_z_scale = GetSetting(Set_n64_z_scale);
|
||||
|
|
|
@ -247,7 +247,7 @@ public:
|
|||
inline bool force_quad3d(void) const { return m_force_quad3d; } //force 0xb5 command to be quad, not line 3d
|
||||
inline bool clip_zmin(void) const { return m_clip_zmin; } //enable near z clipping
|
||||
inline bool clip_zmax(void) const { return m_clip_zmax; } //enable far plane clipping
|
||||
int adjust_aspect; //adjust screen aspect for wide screen mode
|
||||
inline bool adjust_aspect(void) const { return m_adjust_aspect; } //adjust screen aspect for wide screen mode
|
||||
int force_calc_sphere; //use spheric mapping only, Ridge Racer 64
|
||||
int pal230; //set special scale for PAL games
|
||||
int correct_viewport; //correct viewport values
|
||||
|
@ -366,6 +366,7 @@ private:
|
|||
bool m_force_quad3d;
|
||||
bool m_clip_zmin;
|
||||
bool m_clip_zmax;
|
||||
bool m_adjust_aspect;
|
||||
hacks_t m_hacks;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue