Changeset 99ce51c for global.c


Ignore:
Timestamp:
Jun 2, 2010, 9:08:18 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
678a505
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.
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.