Changeset 99ce51c


Ignore:
Timestamp:
Jun 2, 2010, 9:08:18 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
678a505c
Parents:
3e0147f
Message:
Punt the arguments to owl_global_resize

We're not using them, and they wouldn't work as advertised with the
resizepending check.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r3e0147f r99ce51c  
    467467}
    468468
    469 void owl_global_resize(owl_global *g, int lines, int cols) {
     469void owl_global_check_resize(owl_global *g) {
    470470  /* resize the screen.  If lines or cols is 0 use the terminal size */
    471471  if (!g->resizepending) return;
    472472  g->resizepending = 0;
    473473
    474   owl_global_get_terminal_size(&lines, &cols);
    475   if (lines) g->lines = lines;
    476   if (cols)  g->cols  = cols;
     474  owl_global_get_terminal_size(&g->lines, &g->cols);
    477475  owl_window_resize(owl_window_get_screen(), g->lines, g->cols);
    478476
  • owl.c

    rfa65671 r99ce51c  
    457457{
    458458  /* if a resize has been scheduled, deal with it */
    459   owl_global_resize(&g, 0, 0);
     459  owl_global_check_resize(&g);
    460460
    461461  /* update the terminal if we need to */
Note: See TracChangeset for help on using the changeset viewer.