Changeset fe67f1f


Ignore:
Timestamp:
Apr 18, 2004, 11:55:42 AM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
818a073
Parents:
7fad773
Message:
Do OLC formatting for anything coming from olc.matisse
Improvements to popup size algorithm (from gildea)
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r7fad773 rfe67f1f  
    11$Id$
    22
     32.1.8-pre-1
     4        Do OLC formatting for anything coming from olc.matisse
     5        Improvements to popup size algorithm (from gildea)
     6       
    372.1.7
    48        The colorclass command is added, to make colorization easy
  • owl.h

    r7fad773 rfe67f1f  
    5959static const char owl_h_fileIdent[] = "$Id$";
    6060
    61 #define OWL_VERSION         2.1.7
    62 #define OWL_VERSION_STRING "2.1.7"
     61#define OWL_VERSION         2.1.8-pre-1
     62#define OWL_VERSION_STRING "2.1.8-pre-1"
    6363
    6464/* Feature that is being tested to redirect stderr through a pipe.
  • popwin.c

    rad96951 rfe67f1f  
    1919  glines=owl_global_get_lines(&g);
    2020  gcols=owl_global_get_cols(&g);
    21   if (glines > 24) {
    22     pw->lines=glines/2;
    23     startline=glines/4;
    24   } else {
    25     pw->lines=(glines*3)/4;
    26     startline=glines/8;
    27   }
    2821
    29   pw->cols=(gcols*15)/16;
    30   startcol=gcols/32;
    31   if (pw->cols > 100) {
    32     pw->cols=100;
    33     startcol=(gcols-100)/2;
    34   }
     22  pw->lines = owl_util_min(glines,24)*3/4 + owl_util_max(glines-24,0)/2;
     23  startline = (glines-pw->lines)/2;
     24
     25  pw->cols = owl_util_min(gcols,100)*15/16 + owl_util_max(gcols-100,0)/2;
     26  startcol = (gcols-pw->cols)/2;
    3527
    3628  pw->borderwin=newwin(pw->lines, pw->cols, startline, startcol);
  • util.c

    r1bb1e67 rfe67f1f  
    725725}
    726726
     727int owl_util_max(int a, int b)
     728{
     729  if (a>b) return(a);
     730  return(b);
     731}
     732
     733int owl_util_min(int a, int b)
     734{
     735  if (a<b) return(a);
     736  return(b);
     737}
     738
    727739/**************************************************************************/
    728740/************************* REGRESSION TESTS *******************************/
  • zephyr.c

    r405d5e6 rfe67f1f  
    351351
    352352  /* deal with MIT Athena OLC messages */
    353   if (!strcasecmp(n->z_class, "olc") &&
    354       !strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
     353  if (!strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
    355354    return(owl_zephyr_get_field(n, 1));
    356355  }
     
    372371
    373372  /* No zsig for OLC messages */
    374   if (!strcasecmp(n->z_class, "olc") &&
    375       !strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
     373  if (!strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
    376374    return("");
    377375  }
Note: See TracChangeset for help on using the changeset viewer.