Skip to content

Commit

Permalink
Fix "reset to full area" button not always working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Nov 16, 2022
1 parent f1b031d commit bb762d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions osu.Game/Overlays/Settings/Sections/Input/TabletSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ private void load(OsuColour colours, LocalisationManager localisation)
if (RuntimeInfo.OS == RuntimeInfo.Platform.Windows || RuntimeInfo.OS == RuntimeInfo.Platform.Linux)
{
t.NewLine();
var formattedSource = MessageFormatter.FormatText(localisation.GetLocalisedBindableString(TabletSettingsStrings.NoTabletDetectedDescription(RuntimeInfo.OS == RuntimeInfo.Platform.Windows
? @"https://opentabletdriver.net/Wiki/FAQ/Windows"
: @"https://opentabletdriver.net/Wiki/FAQ/Linux")).Value);
var formattedSource = MessageFormatter.FormatText(localisation.GetLocalisedBindableString(TabletSettingsStrings.NoTabletDetectedDescription(
RuntimeInfo.OS == RuntimeInfo.Platform.Windows
? @"https://opentabletdriver.net/Wiki/FAQ/Windows"
: @"https://opentabletdriver.net/Wiki/FAQ/Linux")).Value);
t.AddLinks(formattedSource.Text, formattedSource.Links);
}
}),
Expand Down Expand Up @@ -274,6 +275,7 @@ protected override void LoadComplete()
sizeY.Default = sizeY.MaxValue = tab.Size.Y;

areaSize.Default = new Vector2(sizeX.Default, sizeY.Default);
areaOffset.Default = new Vector2(offsetX.Default, offsetY.Default);
}), true);
}

Expand Down

0 comments on commit bb762d8

Please sign in to comment.