Build 0.18.9.0
This commit is contained in:
@@ -282,9 +282,9 @@ namespace Barotrauma
|
||||
screen.OnFileDropped(filePath, extension);
|
||||
}
|
||||
|
||||
public void ApplyGraphicsSettings()
|
||||
public void ApplyGraphicsSettings(bool recalculateFontsAndStyles = false)
|
||||
{
|
||||
void updateConfig()
|
||||
static void updateConfig()
|
||||
{
|
||||
var config = GameSettings.CurrentConfig;
|
||||
config.Graphics.Width = GraphicsWidth;
|
||||
@@ -323,6 +323,12 @@ namespace Barotrauma
|
||||
|
||||
defaultViewport = GraphicsDevice.Viewport;
|
||||
|
||||
if (recalculateFontsAndStyles)
|
||||
{
|
||||
GUIStyle.RecalculateFonts();
|
||||
GUIStyle.RecalculateSizeRestrictions();
|
||||
}
|
||||
|
||||
ResolutionChanged?.Invoke();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user