/[ofm]/ofm/menu.c
ViewVC logotype

Diff of /ofm/menu.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by MarcusvA, Sat Jan 11 10:28:46 2003 UTC revision 1.9 by eses, Sat Jan 18 23:34:37 2003 UTC
# Line 107  OMENU *menuCreate(int x, int y, char* na Line 107  OMENU *menuCreate(int x, int y, char* na
107          om->x=x;          om->x=x;
108          om->y=y;          om->y=y;
109          itmp=menu_size;          itmp=menu_size;
110            items=NULL;
111          items=(ITEM**)xmalloc(sizeof(ITEM)*itmp);          items=(ITEM**)xmalloc(sizeof(ITEM)*itmp);
112            if (items==NULL) return NULL;
113          cit=0;          cit=0;
114          itmp=0;          itmp=0;
115                    
# Line 120  OMENU *menuCreate(int x, int y, char* na Line 122  OMENU *menuCreate(int x, int y, char* na
122              itmp++;              itmp++;
123          }          }
124                    
125            
126          om->menu=new_menu(items);          om->menu=new_menu(items);
127          set_menu_fore(om->menu,COLOR_PAIR(13)|A_REVERSE);          set_menu_fore(om->menu,COLOR_PAIR(13)|A_REVERSE);
128          set_menu_back(om->menu,COLOR_PAIR(2));          set_menu_back(om->menu,COLOR_PAIR(2));

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26