Diff for /np2/embed/menubase/menusys.c between versions 1.1 and 1.3

version 1.1, 2003/11/21 06:51:10 version 1.3, 2004/06/18 16:58:11
Line 44  typedef struct { Line 44  typedef struct {
   
 static MENUSYS  menusys;  static MENUSYS  menusys;
   
   #if 1
 static const BYTE str_sysr[] = {                // 元のサイズに戻す                          // 元のサイズに戻す
                 0x8c,0xb3,0x82,0xcc,0x83,0x54,0x83,0x43,0x83,0x59,0x82,0xc9,0x96,  static const char str_sysr[] = 
                 0xdf,0x82,0xb7,0x00};                          "\214\263\202\314\203\124\203\103\203\131\202\311\226\337\202\267";
 static const BYTE str_sysm[] = {                // 移動                          // 移動
                 0x88,0xda,0x93,0xae,0x00};  static const char str_sysm[] = "\210\332\223\256";
 static const BYTE str_syss[] = {                // サイズ変更                          // サイズ変更
                 0x83,0x54,0x83,0x43,0x83,0x59,0x95,0xcf,0x8d,0x58,0x00};  static const char str_syss[] = "\203\124\203\103\203\131\225\317\215\130";
 static const BYTE str_sysn[] = {                // 最小化                          // 最小化
                 0x8d,0xc5,0x8f,0xac,0x89,0xbb,0x00};  static const char str_sysn[] = "\215\305\217\254\211\273";
 static const BYTE str_sysx[] = {                // 最大化                          // 最大化
                 0x8d,0xc5,0x91,0xe5,0x89,0xbb,0x00};  static const char str_sysx[] = "\215\305\221\345\211\273";
 static const BYTE str_sysc[] = {                // 閉じる                          // 閉じる
                 0x95,0xc2,0x82,0xb6,0x82,0xe9,0x00};  static const char str_sysc[] = "\225\302\202\266\202\351";
   #else
   static const char str_sysr[] = "Restore";
   static const char str_sysm[] = "Move";
   static const char str_syss[] = "Size";
   static const char str_sysn[] = "Minimize";
   static const char str_sysx[] = "Maximize";
   static const char str_sysc[] = "Close";
   #endif
   
   
 static const MSYSITEM s_exit[] = {  static const MSYSITEM s_exit[] = {
                 {(char *)str_sysr,      NULL,           0,                              MENU_GRAY},                  {str_sysr,                      NULL,           0,                              MENU_GRAY},
                 {(char *)str_sysm,      NULL,           0,                              MENU_GRAY},                  {str_sysm,                      NULL,           0,                              MENU_GRAY},
                 {(char *)str_syss,      NULL,           0,                              MENU_GRAY},                  {str_syss,                      NULL,           0,                              MENU_GRAY},
 #if defined(MENU_TASKMINIMIZE)  #if defined(MENU_TASKMINIMIZE)
                 {(char *)str_sysn,      NULL,           SID_MINIMIZE,   0},                  {str_sysn,                      NULL,           SID_MINIMIZE,   0},
 #else  #else
                 {(char *)str_sysn,      NULL,           0,                              MENU_GRAY},                  {str_sysn,                      NULL,           0,                              MENU_GRAY},
 #endif  #endif
                 {(char *)str_sysx,      NULL,           0,                              MENU_GRAY},                  {str_sysx,                      NULL,           0,                              MENU_GRAY},
                 {NULL,                          NULL,           0,                              MENU_SEPARATOR},                  {NULL,                          NULL,           0,                              MENU_SEPARATOR},
                 {(char *)str_sysc,      NULL,           SID_CLOSE,              MENU_DELETED}};                  {str_sysc,                      NULL,           SID_CLOSE,              MENU_DELETED}};
   
 static const MSYSITEM s_root[] = {  static const MSYSITEM s_root[] = {
                 {NULL,                          s_exit,         0,                              MENUS_SYSTEM},                  {NULL,                          s_exit,         0,                              MENUS_SYSTEM},
Line 102  static MENUHDL append1(MENUSYS *sys, con Line 110  static MENUHDL append1(MENUSYS *sys, con
         hdl.id = item->id;          hdl.id = item->id;
         hdl.flag = item->flag & (~MENU_DELETED);          hdl.flag = item->flag & (~MENU_DELETED);
         if (item->string) {          if (item->string) {
                 milstr_ncpy(hdl.string, item->string, sizeof(hdl.string));                  milsjis_ncpy(hdl.string, item->string, sizeof(hdl.string));
         }          }
         ret = (MENUHDL)listarray_enum(sys->res, seaempty, NULL);          ret = (MENUHDL)listarray_enum(sys->res, seaempty, NULL);
         if (ret) {          if (ret) {
Line 687  BOOL menusys_create(const MSYSITEM *item Line 695  BOOL menusys_create(const MSYSITEM *item
         }          }
         ret->cmd = cmd;          ret->cmd = cmd;
         if (title) {          if (title) {
                 milstr_ncpy(ret->title, title, sizeof(ret->title));                  milsjis_ncpy(ret->title, title, sizeof(ret->title));
         }          }
         r = listarray_new(sizeof(_MENUHDL), 32);          r = listarray_new(sizeof(_MENUHDL), 32);
         if (r == NULL) {          if (r == NULL) {
Line 1051  static void menusys_settxt(MENUID id, vo Line 1059  static void menusys_settxt(MENUID id, vo
         }          }
   
         if (arg) {          if (arg) {
                 milstr_ncpy(itm->string, (char *)arg, sizeof(itm->string));                  milsjis_ncpy(itm->string, (char *)arg, sizeof(itm->string));
         }          }
         else {          else {
                 itm->string[0] = '\0';                  itm->string[0] = '\0';

Removed from v.1.1  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>