mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fixed AA settings not updating correctly after screen resolution change
This commit is contained in:
parent
1d60524269
commit
f0ddc22da8
1 changed files with 6 additions and 2 deletions
|
@ -616,12 +616,16 @@ namespace TEN::Gui
|
||||||
{
|
{
|
||||||
// Save the configuration.
|
// Save the configuration.
|
||||||
auto screenResolution = g_Configuration.SupportedScreenResolutions[CurrentSettings.SelectedScreenResolution];
|
auto screenResolution = g_Configuration.SupportedScreenResolutions[CurrentSettings.SelectedScreenResolution];
|
||||||
|
|
||||||
|
bool screenResolutionChanged = CurrentSettings.Configuration.ScreenWidth != screenResolution.x ||
|
||||||
|
CurrentSettings.Configuration.ScreenHeight != screenResolution.y;
|
||||||
|
|
||||||
CurrentSettings.Configuration.ScreenWidth = screenResolution.x;
|
CurrentSettings.Configuration.ScreenWidth = screenResolution.x;
|
||||||
CurrentSettings.Configuration.ScreenHeight = screenResolution.y;
|
CurrentSettings.Configuration.ScreenHeight = screenResolution.y;
|
||||||
|
|
||||||
// Determine whether we should update AA shaders.
|
// Determine whether we should update AA shaders.
|
||||||
bool shouldRecompileAAShaders = g_Configuration.AntialiasingMode != CurrentSettings.Configuration.AntialiasingMode &&
|
bool shouldRecompileAAShaders = CurrentSettings.Configuration.AntialiasingMode != AntialiasingMode::Low &&
|
||||||
CurrentSettings.Configuration.AntialiasingMode != AntialiasingMode::Low;
|
(screenResolutionChanged || g_Configuration.AntialiasingMode != CurrentSettings.Configuration.AntialiasingMode);
|
||||||
|
|
||||||
g_Configuration = CurrentSettings.Configuration;
|
g_Configuration = CurrentSettings.Configuration;
|
||||||
SaveConfiguration();
|
SaveConfiguration();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue