Skip to content

v0.11.1 - 修复随机模式崩溃

Choose a tag to compare

@sunnyhot sunnyhot released this 13 May 10:27
· 293 commits to main since this release

v0.11.1

🐛 Bug Fix

  • 修复选择随机拼色/随机炫彩后重启应用崩溃的问题
    • 根因:randomPop 模式的哈希计算 UInt32(frameIndex &+ timeBucket &* 2654435761) 整数溢出,导致 Swift runtime 崩溃(Negative value is not representable)
    • 修复:使用 truncatingIfNeeded 安全截断 + Murmur 风格额外混合
    • randomCycle 模式同步修复:HSB 色值可能超出 [0,1] 范围,改用 max/min 安全钳位