Changeset 2422
- Timestamp:
- Jun 15, 2008, 5:34:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/screens.c
r2421 r2422 95 95 int remove_screen(struct screen_list *list, int n, int please_kill) 96 96 { 97 if(n>list->count) return -1; 97 98 if(n>=list->count) return -1; 98 99 99 100 if(please_kill) … … 119 120 120 121 } 122 destroy_screen(list->screen[n]); 121 123 122 124 memmove(&list->screen[n], … … 130 132 fprintf(stderr, "Can't allocate memory at %s:%d\n", __FUNCTION__, __LINE__); 131 133 134 135 132 136 list->count--; 133 137 return 1; … … 141 145 { 142 146 int i; 147 148 if(!screen_list->count) return; 143 149 144 150 screen_list->width = cucul_get_canvas_width(cv);
Note: See TracChangeset
for help on using the changeset viewer.