Changeset 5cc7e5e for global.c


Ignore:
Timestamp:
Jun 20, 2010, 4:47:23 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
0be3efd
Parents:
1f4ea57
git-author:
David Benjamin <davidben@mit.edu> (06/20/10 16:41:26)
git-committer:
David Benjamin <davidben@mit.edu> (06/20/10 16:47:23)
Message:
Kill owl_global_needrefresh

Not necessary now. Internal state for owl_window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rea7daa8 r5cc7e5e  
    3131  }
    3232
     33  g->lines=LINES;
     34  g->cols=COLS;
     35  /* We shouldn't need this if we initialize lines and cols before the first
     36   * owl_window_get_screen, but to be safe, we synchronize. */
     37  owl_window_resize(owl_window_get_screen(), g->lines, g->cols);
     38
    3339  g->context_stack = NULL;
    3440  owl_global_push_context(g, OWL_CTX_STARTUP, NULL, NULL, NULL);
     
    3743  g->topmsg=0;
    3844  g->markedmsgid=-1;
    39   g->needrefresh=1;
    4045  g->startupargs=NULL;
    4146
    4247  owl_variable_dict_setup(&(g->vars));
    43 
    44   g->lines=LINES;
    45   g->cols=COLS;
    4648
    4749  g->rightshift=0;
     
    306308}
    307309
    308 /* refresh */
    309 
    310 int owl_global_is_needrefresh(const owl_global *g) {
    311   if (g->needrefresh==1) return(1);
    312   return(0);
    313 }
    314 
    315 void owl_global_set_needrefresh(owl_global *g) {
    316   g->needrefresh=1;
    317 }
    318 
    319 void owl_global_set_noneedrefresh(owl_global *g) {
    320   g->needrefresh=0;
    321 }
    322 
    323310/* variable dictionary */
    324311
Note: See TracChangeset for help on using the changeset viewer.