mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
docs(ffi): fix compilation of examples
This commit is contained in:
committed by
Benoît Cortier
parent
989a56f233
commit
1bb6895422
+1
-4
@@ -9,7 +9,6 @@
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.0.10" />
|
||||
<PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
|
||||
@@ -25,6 +24,4 @@
|
||||
<ItemGroup Condition="'$([System.OperatingSystem]::IsWindows())'">
|
||||
<PackageReference Include="Avalonia.Win32" Version="11.0.10" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -48,8 +48,6 @@ public partial class MainWindow : Window
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
bool _resizeTaskStarted = false;
|
||||
|
||||
protected override void OnSizeChanged(SizeChangedEventArgs e)
|
||||
{
|
||||
base.OnSizeChanged(e);
|
||||
@@ -94,10 +92,11 @@ public partial class MainWindow : Window
|
||||
var config = BuildConfig(username, password, domain, _renderModel.Width, _renderModel.Height);
|
||||
|
||||
CliprdrBackendFactory? factory = null;
|
||||
var handle = GetWindowHandle();
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && handle != null)
|
||||
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
_cliprdr = WinCliprdr.New(handle.Value);
|
||||
_cliprdr = WinCliprdr.New();
|
||||
|
||||
if (_cliprdr != null)
|
||||
{
|
||||
factory = _cliprdr.BackendFactory();
|
||||
@@ -519,4 +518,4 @@ public sealed class RendererModel : INotifyPropertyChanged
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,9 +20,10 @@ namespace Devolutions.IronRdp.ConnectExample
|
||||
var username = arguments["--username"];
|
||||
var password = arguments["--password"];
|
||||
var domain = arguments["--domain"];
|
||||
|
||||
try
|
||||
{
|
||||
var (res, framed) = await Connection.Connect(buildConfig(serverName, username, password, domain, 1980, 1080), serverName);
|
||||
var (res, framed) = await Connection.Connect(buildConfig(serverName, username, password, domain, 1980, 1080), serverName, null);
|
||||
var decodedImage = DecodedImage.New(PixelFormat.RgbA32, res.GetDesktopSize().GetWidth(), res.GetDesktopSize().GetHeight());
|
||||
var activeState = ActiveStage.New(res);
|
||||
var keepLooping = true;
|
||||
|
||||
Reference in New Issue
Block a user