foxnne / pixi

Pixel art editor made with Zig.
https://foxnne.github.io/pixi/
MIT License
645 stars 20 forks source link

update @fabs to @abs and fix one type error #38

Closed jeremy-coleman closed 8 months ago

jeremy-coleman commented 9 months ago

Hi, after this was merged https://github.com/ziglang/zig/issues/16026 , fabs is no longer builtin and replaced with abs.

this pr fixes that, and another type error from the line below. I'm not actually sure what the previous behavior would have been? but i just changed it to { 255,255,255,255 }. It wouldn't compile with it empty.
https://github.com/jeremy-coleman/pixi/blob/bdad0113351f461a258c3eeb0fee94b44d507eb2/src/editor/explorer/tools.zig#L62

Anyway, small changes and working with nightly zig installed as-of a couple hours ago.