Lines Matching refs:res
451 stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); in stbrp__skyline_pack_rectangle() local
458 if(res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { in stbrp__skyline_pack_rectangle()
459 res.prev_link = NULL; in stbrp__skyline_pack_rectangle()
460 return res; in stbrp__skyline_pack_rectangle()
465 node->x = (stbrp_coord) res.x; in stbrp__skyline_pack_rectangle()
466 node->y = (stbrp_coord)(res.y + height); in stbrp__skyline_pack_rectangle()
474 cur = *res.prev_link; in stbrp__skyline_pack_rectangle()
475 if(cur->x < res.x) { in stbrp__skyline_pack_rectangle()
482 *res.prev_link = node; in stbrp__skyline_pack_rectangle()
487 while(cur->next && cur->next->x <= res.x + width) { in stbrp__skyline_pack_rectangle()
498 if(cur->x < res.x + width) in stbrp__skyline_pack_rectangle()
499 cur->x = (stbrp_coord)(res.x + width); in stbrp__skyline_pack_rectangle()
525 return res; in stbrp__skyline_pack_rectangle()