treeform / windy

Windowing library for Nim using OS native APIs.
MIT License
115 stars 16 forks source link

Nim 2.0.0 error #110

Open LokeX opened 1 year ago

LokeX commented 1 year ago

.nimble\pkgs\windy-0.0.0\windy\platforms\win32\platform.nim(872, 17) Error: cannot convert 513 to range 0..255(int)

Works fine with ver. 1.6.10

LokeX commented 1 year ago

I fixed the issue by applying .UINT to WM_LBUTTONDOWN

but it runs much slower in Nim 2 - ver. 1.6.10 runs as it should - weird...

LokeX commented 1 year ago

I compiled with -d:release and now it runs at "normal" speed...

Any ideas why?

treeform commented 1 year ago

I am running Windy on Nim 2.0.0 now and I don't see this error?

LokeX commented 1 year ago

It has been reported before in now closed issue #101: win32/platform.nim compile error #101 This fix had not been applied to the update I received 2 days ago...

I had a really severe slowdown compiling with Nim 2.0.0 without -d:release, that really "bugs" me - if you get my drift... I use Windy, Pixie and Boxy I love these libraries, and my investment in them makes me concerned - but I know it comes with the territory.