-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Avalonia@54d18061 (Jun 30 2023) (#36)
- Loading branch information
Showing
11 changed files
with
38 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
src/Modern.WindowKit/Avalonia.Win32/WindowFramebuffer.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
using System; | ||
using System.Threading; | ||
using Modern.WindowKit.Compatibility; | ||
using Modern.WindowKit.Metadata; | ||
using Modern.WindowKit.Platform.Internal; | ||
|
||
namespace Modern.WindowKit.Platform | ||
{ | ||
[PrivateApi] | ||
internal class StandardRuntimePlatform : IRuntimePlatform | ||
{ | ||
public IDisposable StartSystemTimer(TimeSpan interval, Action tick) | ||
{ | ||
return new Timer(_ => tick(), null, interval, interval); | ||
} | ||
|
||
public IUnmanagedBlob AllocBlob(int size) => new UnmanagedBlob(size); | ||
|
||
private static readonly RuntimePlatformInfo s_info = new() | ||
{ | ||
IsDesktop = OperatingSystemEx.IsWindows() || OperatingSystemEx.IsMacOS() || OperatingSystemEx.IsLinux(), | ||
IsMobile = OperatingSystemEx.IsAndroid() || OperatingSystemEx.IsIOS() | ||
}; | ||
|
||
|
||
|
||
public virtual RuntimePlatformInfo GetRuntimeInfo() => s_info; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters