Changeset 176d3443 for global.c


Ignore:
Timestamp:
Jan 30, 2005, 12:26:43 PM (19 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
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:
e74e573
Parents:
180cd15
Message:
Deal gracefully with being resized as small as 1x1 [BZ 3]
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r8232149 r176d3443  
    120120  /* set the new window sizes */
    121121  g->recwinlines=g->lines-(typwin_lines+2);
    122   if (g->recwinlines<1) {
    123     /* this will screw things up.  I'm not sure what to do yet,
    124        but this is better than nothing */
    125     /* g->recwinlines=1; */
    126   }
     122  if (g->recwinlines<0) {
     123    /* gotta deal with this */
     124    g->recwinlines=0;
     125  }
     126
     127  owl_function_debugmsg("_owl_global_setup_windows: about to call newwin(%i, %i, 0, 0)\n", g->recwinlines, cols);
    127128
    128129  /* create the new windows */
    129130  g->recwin=newwin(g->recwinlines, cols, 0, 0);
    130131  if (g->recwin==NULL) {
    131     owl_function_debugmsg("\n\nI just received an error on creating a new receive window\n");
    132     owl_function_debugmsg("newwin was called with arguments (%i, %i, 0, 0) and returned NULL\n",
    133            g->recwinlines, cols);
     132    owl_function_debugmsg("_owl_global_setup_windows: newwin returned NULL\n", g->recwinlines, cols);
    134133    endwin();
    135 
    136134    exit(50);
    137135  }
Note: See TracChangeset for help on using the changeset viewer.