Changeset da466e0 for global.c


Ignore:
Timestamp:
Aug 22, 2008, 9:48:20 PM (12 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
147d880
Parents:
cdc6ff1
Message:
At broder/ccpost's suggestion, add a typewindelta variable that lets you
expand the typewin on small screens when it is active, and keep it small by
default.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r9f4e3f8 rda466e0  
    310310
    311311void owl_global_set_typwin_active(owl_global *g) {
     312  int d = owl_global_get_typewindelta(g);
     313  if (d > 0)
     314      owl_function_resize_typwin(owl_global_get_typwin_lines(g) + d);
     315
    312316  g->typwinactive=1;
    313317}
    314318
    315319void owl_global_set_typwin_inactive(owl_global *g) {
     320  int d = owl_global_get_typewindelta(g);
     321  if (d > 0)
     322      owl_function_resize_typwin(owl_global_get_typwin_lines(g) - d);
     323
    316324  g->typwinactive=0;
    317325}
Note: See TracChangeset for help on using the changeset viewer.