Mercurial > mplayer.hg
comparison gui/ui/actions.c @ 34684:b03481253518
Cosmetic: Prefer C style for single line comments.
Additionally, slightly revise some of these comments.
author | ib |
---|---|
date | Fri, 24 Feb 2012 17:16:54 +0000 |
parents | 73a5ecb53ee2 |
children | eeb74ce15120 |
comparison
equal
deleted
inserted
replaced
34683:621058eff80f | 34684:b03481253518 |
---|---|
133 mainVisible = 1; | 133 mainVisible = 1; |
134 return; | 134 return; |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
138 // reload menu window | 138 /* reload menu window */ |
139 | 139 |
140 if (prev && guiApp.menuIsPresent) { | 140 if (prev && guiApp.menuIsPresent) { |
141 free(menuDrawBuffer); | 141 free(menuDrawBuffer); |
142 menuDrawBuffer = calloc(1, guiApp.menu.Bitmap.ImageSize); | 142 menuDrawBuffer = calloc(1, guiApp.menu.Bitmap.ImageSize); |
143 | 143 |
151 wsSetShape(&guiApp.menuWindow, guiApp.menu.Mask.Image); | 151 wsSetShape(&guiApp.menuWindow, guiApp.menu.Mask.Image); |
152 wsVisibleWindow(&guiApp.menuWindow, wsHideWindow); | 152 wsVisibleWindow(&guiApp.menuWindow, wsHideWindow); |
153 } else | 153 } else |
154 uiMenuInit(); | 154 uiMenuInit(); |
155 | 155 |
156 // reload sub window | 156 /* reload sub window */ |
157 | 157 |
158 if (guiApp.sub.Bitmap.Image) | 158 if (guiApp.sub.Bitmap.Image) |
159 wsResizeImage(&guiApp.subWindow, guiApp.sub.Bitmap.Width, guiApp.sub.Bitmap.Height); | 159 wsResizeImage(&guiApp.subWindow, guiApp.sub.Bitmap.Width, guiApp.sub.Bitmap.Height); |
160 | 160 |
161 if (!guiApp.subWindow.isFullScreen && !guiInfo.Playing) { | 161 if (!guiApp.subWindow.isFullScreen && !guiInfo.Playing) { |
171 wsSetBackgroundRGB(&guiApp.subWindow, guiApp.sub.R, guiApp.sub.G, guiApp.sub.B); | 171 wsSetBackgroundRGB(&guiApp.subWindow, guiApp.sub.R, guiApp.sub.G, guiApp.sub.B); |
172 wsClearWindow(guiApp.subWindow); | 172 wsClearWindow(guiApp.subWindow); |
173 wsPostRedisplay(&guiApp.subWindow); | 173 wsPostRedisplay(&guiApp.subWindow); |
174 } | 174 } |
175 | 175 |
176 // reload playbar | 176 /* reload playbar */ |
177 | 177 |
178 if (bprev) | 178 if (bprev) |
179 wsDestroyWindow(&guiApp.playbarWindow); | 179 wsDestroyWindow(&guiApp.playbarWindow); |
180 | 180 |
181 uiPlaybarInit(); | 181 uiPlaybarInit(); |
182 | 182 |
183 // reload main window | 183 /* reload main window */ |
184 | 184 |
185 free(mainDrawBuffer); | 185 free(mainDrawBuffer); |
186 mainDrawBuffer = calloc(1, guiApp.main.Bitmap.ImageSize); | 186 mainDrawBuffer = calloc(1, guiApp.main.Bitmap.ImageSize); |
187 | 187 |
188 if (!mainDrawBuffer) { | 188 if (!mainDrawBuffer) { |