Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinSvgSupported function in unit D2DSVGFactory fails in older Delphi versions #290

Open
jrathlev opened this issue Jan 9, 2025 · 1 comment

Comments

@jrathlev
Copy link

jrathlev commented Jan 9, 2025

In the D2DSVGFactory unit, the required Windows version (Windows 10 Creators Update) is queried at the very end (function WinSvgSupported). In older Delphi versions, e.g. 10 Seattle, TOSVersion returns an incorrect build number (always 0), so that the query does not work, see here.

Instead of TOSVersion, the functions from my SysInfo unit (see attached file) can be used at this point:
Result:=CheckOSVersion(10,0) and CheckOSBuild(15063)

SystemInfo.zip

@carloBarazzetta
Copy link
Contributor

Thank you for your feedback, D2DSVGFactory was created by @pyscripter, I don't use it because the SVG support is very limited...
Windows SVG Support
I'll fix as soon as possible...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants