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

Class version has a minor bug, unable to render multiple thumbnails on a window #1

Open
Ciantic opened this issue May 24, 2019 · 0 comments

Comments

@Ciantic
Copy link

Ciantic commented May 24, 2019

I know this is not your most pressing issue, but if someone else is using this, it might be a useful note here.

Currently one can't render multiple thumbnails to a window, because of a little bug.

To fix this change:

	__New(hDestination, hSource)
	{
		VarSetCapacity(thumbnail,	4,	0)

to this:

	__New(hDestination, hSource)
	{
		local thumbnail
		VarSetCapacity(thumbnail,	4,	0)

And it should work.

P.S. it's possible that other methods are similarily broken, and need a local variable before VarSetCapacity, but I'm not a fan of AHK language and the way it won't give you a sensible errors.

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

1 participant