selection is not rectangular, or has holes in it */
| 744 | |
| 745 | /* selection is not rectangular, or has holes in it */ |
| 746 | boolean |
| 747 | selection_is_irregular(struct selectionvar *sel) |
| 748 | { |
| 749 | coordxy x, y; |
| 750 | NhRect rect = cg.zeroNhRect; |
| 751 | |
| 752 | selection_getbounds(sel, &rect); |
| 753 | |
| 754 | for (x = rect.lx; x <= rect.hx; x++) |
| 755 | for (y = rect.ly; y <= rect.hy; y++) |
| 756 | if (isok(x,y) && !selection_getpoint(x, y, sel)) |
| 757 | return TRUE; |
| 758 | |
| 759 | return FALSE; |
| 760 | } |
| 761 | |
| 762 | /* return a description of the selection size */ |
| 763 | char * |
no test coverage detected