Commit Graph

1 Commits (89a9731dff66d896a8f41682b7441a691853469b)

Author SHA1 Message Date
Çağlar Onur 89a9731dff
inky: fix blend precision, height quirk, and minor cleanups
- Fix color blending truncation in blend(): compute the full weighted
    sum as float64 before casting to uint8, avoiding double truncation
  - Fix UC8159 on IMPRESSION57 incorrectly reporting height as 447;
    correct it to 448 in DetectOpts
  - Add Opts.String() for human-readable option printing
  - Refactor update() if/else chain to a switch statement
  - Add TestDevImpression_BlendPrecision to cover the blend fix

Signed-off-by: Çağlar Onur <caglar@10ur.org>
3 weeks ago