Proper signature for paint callbacks among examples, fixes #45