Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancheung committed Apr 13, 2024
1 parent 48eb33f commit 03579e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions FreeTypeSharp.Core.Test/FreeTypeSharp.Core.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 4 additions & 3 deletions FreeTypeSharp.Core.Test/Program.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using System;
using static FreeTypeSharp.Native.FT;
using static FreeTypeSharp.FT;

namespace FreeTypeSharp.Core.Test
{
class Program
{
static void Main(string[] args)
unsafe static void Main(string[] args)
{
var library = new FreeTypeLibrary();
FT_Library_Version(library.Native, out var major, out var minor, out var patch);
int major, minor, patch;
FT_Library_Version(library.Native, &major, &minor, &patch);
Console.WriteLine($"FreeType version: {major}.{minor}.{patch}");
}
}
Expand Down

0 comments on commit 03579e9

Please sign in to comment.