Changeset 1383b58


Ignore:
Timestamp:
May 29, 2010, 1:14:57 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
d3814ff
Parents:
68f63a2
git-author:
David Benjamin <davidben@mit.edu> (05/27/10 11:59:21)
git-committer:
David Benjamin <davidben@mit.edu> (05/29/10 13:14:57)
Message:
Look up lines/cols information from the window
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popwin.c

    r68f63a2 r1383b58  
    5454void owl_popwin_draw_border(owl_window *w, WINDOW *borderwin, void *user_data)
    5555{
    56   owl_popwin *pw = user_data;
     56  int lines, cols;
     57  owl_window_get_position(w, &lines, &cols, 0, 0);
    5758  if (owl_global_is_fancylines(&g)) {
    5859    box(borderwin, 0, 0);
     
    6162    wmove(borderwin, 0, 0);
    6263    waddch(borderwin, '+');
    63     wmove(borderwin, pw->lines-1, 0);
     64    wmove(borderwin, lines-1, 0);
    6465    waddch(borderwin, '+');
    65     wmove(borderwin, pw->lines-1, pw->cols-1);
     66    wmove(borderwin, lines-1, cols-1);
    6667    waddch(borderwin, '+');
    67     wmove(borderwin, 0, pw->cols-1);
     68    wmove(borderwin, 0, cols-1);
    6869    waddch(borderwin, '+');
    6970  }
Note: See TracChangeset for help on using the changeset viewer.