Skip to content

Commit

Permalink
upgrade WicNet to v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Nov 8, 2023
1 parent 5bf3bb5 commit 426d8b7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 248 deletions.
7 changes: 4 additions & 3 deletions Source/DXControl/D2Phap.DXControl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Product>D2Phap.$(AssemblyName)</Product>
<Description>A WinForms hybrid control that supports both Direct2D and GDI+ drawing thanks to WicNet. This control has being used in https://github.com/d2phap/ImageGlass since version 9.0.
</Description>
<Copyright>Copyright (C) 2022 - 2023 Duong Dieu Phap. All rights reserved.</Copyright>
<Copyright>Copyright (C) 2022 - 2024 Duong Dieu Phap. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/d2phap/DXControl</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/d2phap/DXControl</RepositoryUrl>
Expand All @@ -21,7 +21,7 @@
<IncludeSymbols>True</IncludeSymbols>
<PackageReleaseNotes>See release notes here: https://github.com/d2phap/DXControl/releases</PackageReleaseNotes>
<Authors>Duong Dieu Phap</Authors>
<VersionPrefix>2.7.0</VersionPrefix>
<VersionPrefix>3.0.0</VersionPrefix>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down Expand Up @@ -51,11 +51,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="DirectNStandard" Version="1.15.0.2" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="WicNet" Version="1.6.5" />
<PackageReference Include="WicNet" Version="1.7.1" />
</ItemGroup>

</Project>
5 changes: 3 additions & 2 deletions Source/DXControl/DXControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ MIT License
*/
using DirectN;
using System.ComponentModel;
using WicNet.Utilities;

namespace D2Phap;

Expand Down Expand Up @@ -289,7 +290,7 @@ protected override void WndProc(ref Message m)
else
{
_device?.BeginDraw();
_device?.Clear(_D3DCOLORVALUE.FromColor(BackColor));
_device?.Clear(BackColor.ToD3DCOLORVALUE());
_device?.EndDraw();
}
}
Expand Down Expand Up @@ -386,7 +387,7 @@ protected override void OnPaint(PaintEventArgs e)
_graphicsD2d ??= new D2DGraphics(_device, _d2DFactory, _dWriteFactory);

_device.BeginDraw();
_device.Clear(_D3DCOLORVALUE.FromColor(BackColor));
_device.Clear(BackColor.ToD3DCOLORVALUE());
OnRender(_graphicsD2d);
_device.EndDraw();
}
Expand Down
175 changes: 0 additions & 175 deletions Source/DXControl/DirectN/DirectWrite/Extensions/VerticalBlankTicker.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions Source/Demo/Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x64;x86</Platforms>
<ApplicationManifest>app.manifest</ApplicationManifest>

<ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 0 additions & 7 deletions Source/Demo/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->

<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>


<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
Expand Down

0 comments on commit 426d8b7

Please sign in to comment.