Lines Matching refs:cur
452 stbrp_node * node, * cur; in stbrp__skyline_pack_rectangle() local
474 cur = *res.prev_link; in stbrp__skyline_pack_rectangle()
475 if(cur->x < res.x) { in stbrp__skyline_pack_rectangle()
477 stbrp_node * next = cur->next; in stbrp__skyline_pack_rectangle()
478 cur->next = node; in stbrp__skyline_pack_rectangle()
479 cur = next; in stbrp__skyline_pack_rectangle()
487 while(cur->next && cur->next->x <= res.x + width) { in stbrp__skyline_pack_rectangle()
488 stbrp_node * next = cur->next; in stbrp__skyline_pack_rectangle()
490 cur->next = context->free_head; in stbrp__skyline_pack_rectangle()
491 context->free_head = cur; in stbrp__skyline_pack_rectangle()
492 cur = next; in stbrp__skyline_pack_rectangle()
496 node->next = cur; 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()
502 cur = context->active_head; in stbrp__skyline_pack_rectangle()
503 while(cur->x < context->width) { in stbrp__skyline_pack_rectangle()
504 STBRP_ASSERT(cur->x < cur->next->x); in stbrp__skyline_pack_rectangle()
505 cur = cur->next; in stbrp__skyline_pack_rectangle()
507 STBRP_ASSERT(cur->next == NULL); in stbrp__skyline_pack_rectangle()
511 cur = context->active_head; in stbrp__skyline_pack_rectangle()
512 while(cur) { in stbrp__skyline_pack_rectangle()
513 cur = cur->next; in stbrp__skyline_pack_rectangle()
516 cur = context->free_head; in stbrp__skyline_pack_rectangle()
517 while(cur) { in stbrp__skyline_pack_rectangle()
518 cur = cur->next; in stbrp__skyline_pack_rectangle()