Skip to content

Commit 386eabb

Browse files
committed
Added SciterAPIHost.GraphicsFillMode
1 parent b731138 commit 386eabb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/EmptyFlow.SciterAPI/Client/HostGraphicsAPI.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ public void GraphicsDrawImage ( nint hgfx, nint image, Vector2 position, Vector2
316316
m_graphicsApi.gDrawImage ( hgfx, image, position.X, position.Y, position.X, position.Y, ix, iy, iw, ih, opacity );
317317
}
318318

319+
[MethodImpl ( MethodImplOptions.AggressiveInlining )]
320+
public bool GraphicsFillMode ( nint hgfx, bool evenOdd ) {
321+
return m_graphicsApi.gFillMode ( hgfx, evenOdd ) == GraphInResult.Ok;
322+
}
323+
319324
/// <summary>
320325
/// Graphics get color from different channel components.
321326
/// </summary>

src/EmptyFlow.SciterAPI/EmptyFlow.SciterAPI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
From many methods Graphics API removed redundant check
3737
SciterAPIHost.GraphicsPath create path
3838
SciterAPIHost.GraphicsDrawPath draw path
39+
SciterAPIHost.GraphicsFillMode set fill mode
3940
</PackageReleaseNotes>
4041
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4142
</PropertyGroup>

0 commit comments

Comments
 (0)