void plugin_glitch(const char *fmt, ...) { va_list args; char tmp_str[1024]; va_start(args, fmt); vsnprintf(tmp_str, sizeof(tmp_str), fmt, args); glitch("%s", tmp_str); }
void disp_elems(t_params *params, t_lst *element) { t_bunny_pixelarray *glitched; glitched = NULL; while (element) { if (element->hover) glitched = glitch(element->background); blit(¶ms->window->buffer, glitched, element, params->config.oculus); if (element->hover) bunny_delete_clipable(&glitched->clipable); element = element->next; } }