Skip to content

Commit 6218f59

Browse files
committed
Fixed GraphicsPath
1 parent e0ee474 commit 6218f59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/EmptyFlow.SciterAPI/Client/HostGraphicsAPI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ public void GraphicsDrawLine ( nint hgfx, float x1, float y1, float x2, float y2
167167

168168
public nint GraphicsPath ( Action<nint> callback ) {
169169
var result = m_graphicsApi.pathCreate ( out var path );
170-
if ( result != GraphInResult.Ok ) return path;
170+
if ( result != GraphInResult.Ok ) return nint.Zero;
171171

172172
callback ( path );
173173

174174
m_graphicsApi.pathClosePath ( path );
175175

176-
return nint.Zero;
176+
return path;
177177
}
178178

179179
public bool GraphicsDrawPath ( nint hgfx, nint path, DrawPathMode pathMode ) {

0 commit comments

Comments
 (0)