kihlh / hmc-win32

HMC Easier Access to System APIs 简化连接winapi的过程的node c++模块
https://kihlh.gitbook.io/hmc/
MIT License
83 stars 11 forks source link

这段逻辑是错的。opacity > -1 || opacity < 255 #63

Closed wuchuguang closed 4 months ago

wuchuguang commented 4 months ago

setTransparent(opacity) { if (opacity > -1 || opacity < 255) { throw new Error( "fun arg: is only allowed from -1 to 255" ); }

wuchuguang commented 4 months ago

要改为: opacity < 0 || opacity > 255

kihlh commented 4 months ago

感谢反馈,下个版本中解决,您可以直接修改js

kihlh commented 4 months ago

√ 已修改 将在下个版本中得到修复