plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

AlexxV avatar image
AlexxV asked AlexxV edited

Missing method gdip_open_curve_tangents

Basically, it's in the title. Causes in-game linking issues when using gdiplus library. The file in question is: MSFS SDK\WASM\projects\gdiplus\src\FlatNVG\general.cpp

There's only gdip_closed_curve_tangents but no gdip_open_curve_tangents method while both are used in the codebase.

bugwasmgdi+
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

·
Arzop avatar image
Arzop answered AlexxV edited

Hi,

Indeed this function is missing and will be added in the next SDK.

For now, you can add it manually in the WasmGdiPlus project (check README.md https://github.com/mono/libgdiplus/blob/main/src/general.c).


Thanks for reporting this issue.

Best Regards

Maxime / Asobo

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

AlexxV avatar image AlexxV commented ·

Thanks for the reply.

In the meantime, we've been trying to build GDI+ wrapper with stricter compiler and found more issues in the process:

convert_points() and gdip_crc32() are missing too

Bitmap::FromBITMAPINFO() is using Bitmap ctor that is not defined

external bool DLLExports::gdiplusInitialized is a declared in stringformat.cpp but never defined

void* _GdipFontFamilyCachedGenericMonospace;

void* _GdipFontFamilyCachedGenericSansSerif;

void* _GdipFontFamilyCachedGenericSerif;

are all also never defined, only declared as external

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.