mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
chore: fix old references, Rider didn't bother refactoring the rest
This commit is contained in:
parent
36f0d1d87d
commit
c2bce23fc3
2 changed files with 4 additions and 4 deletions
|
|
@ -213,7 +213,7 @@ namespace Dalamud.Interface.Internal
|
|||
/// <summary>
|
||||
/// Gets the font gamma value to use.
|
||||
/// </summary>
|
||||
public float FontGamma => Math.Max(0.1f, this.FontGammaOverride.GetValueOrDefault(Service<DalamudConfiguration>.Get().FontGamma));
|
||||
public float FontGamma => Math.Max(0.1f, this.FontGammaOverride.GetValueOrDefault(Service<DalamudConfiguration>.Get().FontGammaLevel));
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether to override configuration for FontResolutionLevel.
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
this.doMbCollect = configuration.IsMbCollect;
|
||||
|
||||
this.globalUiScale = configuration.GlobalUiScale;
|
||||
this.fontGamma = configuration.FontGamma;
|
||||
this.fontGamma = configuration.FontGammaLevel;
|
||||
this.doUseAxisFontsFromGame = configuration.UseAxisFontsFromGame;
|
||||
this.fontResolutionLevel = configuration.FontResolutionLevel;
|
||||
this.doToggleUiHide = configuration.ToggleUiHide;
|
||||
|
|
@ -197,7 +197,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
var configuration = Service<DalamudConfiguration>.Get();
|
||||
var interfaceManager = Service<InterfaceManager>.Get();
|
||||
|
||||
var rebuildFont = interfaceManager.FontGamma != configuration.FontGamma;
|
||||
var rebuildFont = interfaceManager.FontGamma != configuration.FontGammaLevel;
|
||||
|
||||
ImGui.GetIO().FontGlobalScale = configuration.GlobalUiScale;
|
||||
interfaceManager.FontGammaOverride = null;
|
||||
|
|
@ -930,7 +930,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
configuration.UseAxisFontsFromGame = this.doUseAxisFontsFromGame;
|
||||
configuration.FontResolutionLevel = this.fontResolutionLevel;
|
||||
configuration.FontGamma = this.fontGamma;
|
||||
configuration.FontGammaLevel = this.fontGamma;
|
||||
|
||||
// This is applied every frame in InterfaceManager::CheckViewportState()
|
||||
configuration.IsDisableViewport = !this.doViewport;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue