mclarenlabs / libs-mclaren-alpha

alpha release of McLaren Labs GNUstep ALSA Sound Kit, Synth Kit and demonstration programs
https://mclarenlabs.github.io/libs-mclaren-alpha/
MIT License
1 stars 0 forks source link

Gradient drawing is not supported on ART backend #14

Open mclarenlabs opened 1 month ago

mclarenlabs commented 1 month ago

Code was originally developed with Cairo backend, but gradient drawing is not supported on the ARG backend.

This call

[NSGradient-drawInBezierPath:path angle:xx]

results in an exception.

NSInvalidArgument [ARTGState-drawGradient:fromPoint toPoint:options:] should be overridden by subclass

Workarounds:

  1. remove gradients altogether (they are not used often in this project)
  2. conditionally use gradients if backend is Cairo
mclarenlabs commented 1 month ago

This shows up when compiling the project in the NextSpace environment. NextSpace prefers the ART graphics backend.