- Timestamp:
- Apr 12, 2003, 4:54:57 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e9b1f60
- Parents:
- 8262340
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r8262340 recd5dc5 90 90 91 91 void _owl_global_setup_windows(owl_global *g) { 92 int lines, cols, typwin_lines; 93 94 lines=g->lines; 92 int cols, typwin_lines; 93 95 94 cols=g->cols; 96 typwin_lines =owl_global_get_typwin_lines(g);95 typwin_lines=owl_global_get_typwin_lines(g); 97 96 98 97 /* set the new window sizes */ 99 98 g->recwinlines=g->lines-(typwin_lines+2); 99 if (g->recwinlines<1) { 100 /* this will screw things up. I'm not sure what to do yet, 101 but this is better than nothing */ 102 /* g->recwinlines=1; */ 103 } 100 104 101 105 /* create the new windows */ 102 106 g->recwin=newwin(g->recwinlines, cols, 0, 0); 107 if (g->recwin==NULL) { 108 owl_function_debugmsg("\n\nI just received an error on creating a new receive window\n"); 109 owl_function_debugmsg("newwin was called with arguments (%i, %i, 0, 0) and returned NULL\n", 110 g->recwinlines, cols); 111 endwin(); 112 113 exit(50); 114 } 115 103 116 g->sepwin=newwin(1, cols, g->recwinlines, 0); 104 117 g->msgwin=newwin(1, cols, g->recwinlines+1, 0); … … 375 388 } 376 389 377 /* 378 char buff[1024]; 379 sprintf(buff, "New size is %i lines, %i cols.\n", size.ws_row, size.ws_col); 380 owl_function_makemsg(buff); 381 */ 390 owl_function_debugmsg("New size is %i lines, %i cols.", size.ws_row, size.ws_col); 382 391 owl_function_makemsg(""); 383 384 392 g->resizepending=0; 385 393 }
Note: See TracChangeset
for help on using the changeset viewer.