Mercurial > mplayer.hg
comparison gui/interface.c @ 35357:80fe9ad7f318
Pass guiApp's wsTWindow parameters always by reference (if possible).
(This isn't possible for wsSetIcon(), wsSetLayer() and
wsRaiseWindowTop() by the way, because these need to be
called with a GDK window ID information.)
author | ib |
---|---|
date | Fri, 23 Nov 2012 10:04:26 +0000 |
parents | ee265b18d653 |
children | 8249c2131cd3 |
comparison
equal
deleted
inserted
replaced
35356:90d181c052e5 | 35357:80fe9ad7f318 |
---|---|
189 guiApp.videoWindow.MouseHandler = uiVideoMouseHandle; | 189 guiApp.videoWindow.MouseHandler = uiVideoMouseHandle; |
190 guiApp.videoWindow.KeyHandler = uiMainKeyHandle; | 190 guiApp.videoWindow.KeyHandler = uiMainKeyHandle; |
191 guiApp.videoWindow.DandDHandler = uiDandDHandler; | 191 guiApp.videoWindow.DandDHandler = uiDandDHandler; |
192 | 192 |
193 wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); | 193 wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); |
194 wsClearWindow(guiApp.videoWindow); | 194 wsClearWindow(&guiApp.videoWindow); |
195 | 195 |
196 if (guiApp.video.Bitmap.Image) | 196 if (guiApp.video.Bitmap.Image) |
197 wsConvert(&guiApp.videoWindow, guiApp.video.Bitmap.Image); | 197 wsConvert(&guiApp.videoWindow, guiApp.video.Bitmap.Image); |
198 | 198 |
199 btnModify(evSetVolume, guiInfo.Volume); | 199 btnModify(evSetVolume, guiInfo.Volume); |
821 gui(GUI_SET_STATE, (void *)GUI_STOP); | 821 gui(GUI_SET_STATE, (void *)GUI_STOP); |
822 | 822 |
823 wsHandleEvents(); | 823 wsHandleEvents(); |
824 uiVideoRender = 1; | 824 uiVideoRender = 1; |
825 wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); | 825 wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); |
826 wsClearWindow(guiApp.videoWindow); | 826 wsClearWindow(&guiApp.videoWindow); |
827 wsPostRedisplay(&guiApp.videoWindow); | 827 wsPostRedisplay(&guiApp.videoWindow); |
828 wsVisibleMouse(&guiApp.videoWindow, wsShowMouseCursor); | 828 wsVisibleMouse(&guiApp.videoWindow, wsShowMouseCursor); |
829 } | 829 } |
830 | 830 |
831 break; | 831 break; |