Closed lieff closed 7 years ago
Fixed. NULL == p->image->shapes is for reliability, NULL = p->image->shapes typo wont compile. But its less human readable.
Thanks for the fix!
I'm familiar with the type of comparison as you wrote, and I agree with it's benefits. It's just not with the style of the rest of the code.
I`m tried this optimization https://github.com/memononen/nanosvg/pull/81 and have garbled image on complex svg which requires correct draw order (like tiger.svg). So, I rewrite it to tail caching and it works for me.