void renderpanel(void) { int h = Y_MARGIN; SDL_FillRect(panel, NULL, g_panel_bg); h = renderinfo(h); h = renderhold(h); h = renderqueue(h); }
guiprodcon * renderinit(uint64_t max_size, uint64_t radius){ guiprodcon * ret = malloc(sizeof(guiprodcon)); ret->next = 0; ret->max = max_size; ret->m = malloc(sizeof(mutex)); ret->r = radius; mutex_init(ret->m); double ang = 0; double incr = 2*PI/max_size; for(int i = 0; i < max_size; i++, ang+=incr) { ret->cosang[i]=cos(ang); ret->sinang[i]=sin(ang); } renderqueue(ret); return ret; }