Changeset d3814ff


Ignore:
Timestamp:
May 29, 2010, 1:14:57 PM (15 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
c447d9c
Parents:
1383b58
git-author:
David Benjamin <davidben@mit.edu> (05/27/10 12:02:11)
git-committer:
David Benjamin <davidben@mit.edu> (05/29/10 13:14:57)
Message:
Don't remember lines/cols in popwin

The window already retains this information
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r68f63a2 rd3814ff  
    412412  owl_window *border;
    413413  owl_window *content;
    414   int lines;
    415   int cols;
    416414  int active;
    417415} owl_popwin;
  • popwin.c

    r1383b58 rd3814ff  
    44{
    55  pw->active=0;
    6   pw->lines=0;
    7   pw->cols=0;
    86  return(0);
    97}
     
    4745void owl_popwin_resize_content(owl_window *w, void *user_data)
    4846{
     47  int lines, cols;
    4948  owl_popwin *pw = user_data;
    50   owl_window_get_position(w, &pw->lines, &pw->cols, 0, 0);
    51   owl_window_set_position(pw->content, pw->lines-2, pw->cols-2, 1, 1);
     49  owl_window_get_position(w, &lines, &cols, 0, 0);
     50  owl_window_set_position(pw->content, lines-2, cols-2, 1, 1);
    5251}
    5352
     
    9089  return pw->content;
    9190}
    92 
    93 int owl_popwin_get_lines(const owl_popwin *pw)
    94 {
    95   return(pw->lines-2);
    96 }
    97 
    98 int owl_popwin_get_cols(const owl_popwin *pw)
    99 {
    100   return(pw->cols-2);
    101 }
Note: See TracChangeset for help on using the changeset viewer.