Mercurial > mplayer.hg
comparison gui/app.c @ 32945:15aecb36f23e
Cosmetic: Rename appResetStruct() appInitStruct().
After the old appInitStruct() got renamed, the more appropriate name
'appInitStruct' can be used now for the function that does initialization.
author | ib |
---|---|
date | Sun, 06 Mar 2011 12:21:52 +0000 |
parents | 27a98940e3aa |
children | d551faf8d07e |
comparison
equal
deleted
inserted
replaced
32944:27a98940e3aa | 32945:15aecb36f23e |
---|---|
102 item->last_x = 0; | 102 item->last_x = 0; |
103 item->pressed = btnDisabled; | 103 item->pressed = btnDisabled; |
104 item->tmp = 0; | 104 item->tmp = 0; |
105 } | 105 } |
106 | 106 |
107 void appResetStruct(void) | 107 void appInitStruct(void) |
108 { | 108 { |
109 appMPlayer.IndexOfMainItems = -1; | 109 appMPlayer.IndexOfMainItems = -1; |
110 appMPlayer.IndexOfBarItems = -1; | 110 appMPlayer.IndexOfBarItems = -1; |
111 appMPlayer.IndexOfMenuItems = -1; | 111 appMPlayer.IndexOfMenuItems = -1; |
112 | 112 |
135 for (i = 0; i <= appMPlayer.IndexOfBarItems; i++) | 135 for (i = 0; i <= appMPlayer.IndexOfBarItems; i++) |
136 appClearItem(&appMPlayer.barItems[i]); | 136 appClearItem(&appMPlayer.barItems[i]); |
137 for (i = 0; i <= appMPlayer.IndexOfMenuItems; i++) | 137 for (i = 0; i <= appMPlayer.IndexOfMenuItems; i++) |
138 appClearItem(&appMPlayer.menuItems[i]); | 138 appClearItem(&appMPlayer.menuItems[i]); |
139 | 139 |
140 appResetStruct(); | 140 appInitStruct(); |
141 fntFreeFont(); | 141 fntFreeFont(); |
142 } | 142 } |
143 | 143 |
144 int appFindMessage(unsigned char *str) | 144 int appFindMessage(unsigned char *str) |
145 { | 145 { |