comparison gui/app.c @ 32923:b6a919e84760

Cosmetic: Rename constant for number of events from evBoxs to EVENTS.
author ib
date Thu, 03 Mar 2011 12:16:09 +0000
parents 4546e629ae70
children 992a4b9d7624
comparison
equal deleted inserted replaced
32922:4546e629ae70 32923:b6a919e84760
75 { evLoadAudioFile, "evLoadAudioFile" }, 75 { evLoadAudioFile, "evLoadAudioFile" },
76 { evDropSubtitle, "evDropSubtitle" }, 76 { evDropSubtitle, "evDropSubtitle" },
77 { evSetAspect, "evSetAspect" } 77 { evSetAspect, "evSetAspect" }
78 }; 78 };
79 79
80 static const int evBoxs = sizeof(evNames) / sizeof(evName); 80 static const int EVENTS = sizeof(evNames) / sizeof(evName);
81 81
82 static void appClearItem(wItem *item) 82 static void appClearItem(wItem *item)
83 { 83 {
84 item->type = itNone; 84 item->type = itNone;
85 item->x = 0; 85 item->x = 0;
148 148
149 int appFindMessage(unsigned char *str) 149 int appFindMessage(unsigned char *str)
150 { 150 {
151 int i; 151 int i;
152 152
153 for (i = 0; i < evBoxs; i++) 153 for (i = 0; i < EVENTS; i++)
154 if (!strcmp(evNames[i].name, str)) 154 if (!strcmp(evNames[i].name, str))
155 return evNames[i].message; 155 return evNames[i].message;
156 156
157 return -1; 157 return -1;
158 } 158 }