Browse Source

Fix the avalonia scale in x11 (#22129)

pull/22130/head
lindexi 4 weeks ago
committed by GitHub
parent
commit
4ace5b782e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      src/Avalonia.X11/Screens/X11Screens.Scaling.cs

4
src/Avalonia.X11/Screens/X11Screens.Scaling.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@ -132,7 +132,7 @@ internal partial class X11Screens
{
if (_indexedConfig != null)
{
if (index > 0 && index < _indexedConfig.Count)
if (index >= 0 && index < _indexedConfig.Count)
return _indexedConfig[index];
return 1;
}

Loading…
Cancel
Save