… | |
… | |
941 | RETVAL |
941 | RETVAL |
942 | |
942 | |
943 | int |
943 | int |
944 | GET_CUSTOM (int rend) |
944 | GET_CUSTOM (int rend) |
945 | CODE: |
945 | CODE: |
946 | RETVAL = (rend && RS_customMask) >> RS_customShift; |
946 | RETVAL = (rend & RS_customMask) >> RS_customShift; |
947 | OUTPUT: |
947 | OUTPUT: |
948 | RETVAL |
948 | RETVAL |
949 | |
949 | |
950 | int |
950 | int |
951 | SET_CUSTOM (int rend, int new_value) |
951 | SET_CUSTOM (int rend, int new_value) |
… | |
… | |
1128 | for (wchar_t *wc = wstr; *wc; wc++) |
1128 | for (wchar_t *wc = wstr; *wc; wc++) |
1129 | { |
1129 | { |
1130 | int w = WCWIDTH (*wc); |
1130 | int w = WCWIDTH (*wc); |
1131 | |
1131 | |
1132 | if (w) |
1132 | if (w) |
1133 | RETVAL += min (w, 1); |
1133 | RETVAL += max (w, 1); |
1134 | } |
1134 | } |
1135 | rxvt_pop_locale (); |
1135 | rxvt_pop_locale (); |
1136 | |
1136 | |
1137 | free (wstr); |
1137 | free (wstr); |
1138 | } |
1138 | } |