Skip to content

Commit

Permalink
Merge pull request #302 from DHancock/dev
Browse files Browse the repository at this point in the history
Remove redundant function
  • Loading branch information
DHancock authored Mar 20, 2024
2 parents a09dad4 + b7cbe77 commit fa1b870
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions SudokuSolver/Views/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,6 @@ private double IntialiseScaleFactor()
return dpi / 96.0;
}

public double GetScaleFactor() => scaleFactor;

private void ClearWindowDragRegions()
{
// Guard against race hazards. If a tab is selected using right click a size changed event is generated
Expand Down
2 changes: 1 addition & 1 deletion SudokuSolver/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public MainWindow(WindowState windowState, RectInt32 bounds) : this()
if (AppWindowTitleBar.IsCustomizationSupported())
{
ExtendsContentIntoTitleBar = true;
RightPaddingColumn.MinWidth = AppWindow.TitleBar.RightInset / GetScaleFactor();
RightPaddingColumn.MinWidth = AppWindow.TitleBar.RightInset / scaleFactor;

UpdateCaptionButtonsTheme(LayoutRoot.ActualTheme);

Expand Down

0 comments on commit fa1b870

Please sign in to comment.