Lines Matching defs:needed
541 XkbResizeKeySyms(XkbDescPtr xkb, int key, int needed)
547 if (needed == 0) {
552 if (nOldSyms >= (unsigned) needed) {
555 if (xkb->map->size_syms - xkb->map->num_syms >= (unsigned) needed) {
560 if ((needed - nOldSyms) > 0) {
562 (needed - nOldSyms) * sizeof(KeySym));
565 xkb->map->num_syms += needed;
568 xkb->map->size_syms += (needed > 32 ? needed : 32);
581 nKeySyms = needed;
795 XkbResizeKeyActions(XkbDescPtr xkb, int key, int needed)
800 if (needed <= 0) {
805 (XkbKeyNumSyms(xkb, key) >= (unsigned) needed))
807 if (xkb->server->size_acts - xkb->server->num_acts >= (unsigned) needed) {
809 xkb->server->num_acts += needed;
812 xkb->server->size_acts = xkb->server->num_acts + needed + 8;
826 nKeyActs = needed;
827 if (needed < nCopy)
828 nCopy = needed;