Skip to content

Commit

Permalink
Updated Avalonia.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeltyPlayer committed Nov 16, 2024
1 parent 5d6fc34 commit b7730a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FinModelUtility/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<AvaloniaVersion>11.0.13</AvaloniaVersion>
<AvaloniaVersion>11.2.1</AvaloniaVersion>
<Platforms>x86;x64</Platforms>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static unsafe Bitmap AsAvaloniaImage(this IReadOnlyImage image) {

var pixelSize = new PixelSize(image.Width, image.Height);
var dpi = new Vector(96, 96);
var stride = image.Width;
var stride = 4 * image.Width;

switch (image) {
case Rgba32Image rgba32Image: {
Expand Down

0 comments on commit b7730a7

Please sign in to comment.