comparison gui/ui/actions.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 ac6b38cd0d45
children f1018a8029b2
comparison
equal deleted inserted replaced
35356:90d181c052e5 35357:80fe9ad7f318
77 } 77 }
78 78
79 gui(GUI_SET_STATE, (void *)GUI_PLAY); 79 gui(GUI_SET_STATE, (void *)GUI_PLAY);
80 uiVideoRender = 0; 80 uiVideoRender = 0;
81 wsSetBackgroundRGB(&guiApp.videoWindow, 0, 0, 0); 81 wsSetBackgroundRGB(&guiApp.videoWindow, 0, 0, 0);
82 wsClearWindow(guiApp.videoWindow); 82 wsClearWindow(&guiApp.videoWindow);
83 } 83 }
84 84
85 void uiPause(void) 85 void uiPause(void)
86 { 86 {
87 if (!guiInfo.Playing) 87 if (!guiInfo.Playing)
167 wsConvert(&guiApp.videoWindow, guiApp.video.Bitmap.Image); 167 wsConvert(&guiApp.videoWindow, guiApp.video.Bitmap.Image);
168 168
169 if (!guiInfo.Playing) { 169 if (!guiInfo.Playing) {
170 uiVideoRender = 1; 170 uiVideoRender = 1;
171 wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B); 171 wsSetBackgroundRGB(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B);
172 wsClearWindow(guiApp.videoWindow); 172 wsClearWindow(&guiApp.videoWindow);
173 wsPostRedisplay(&guiApp.videoWindow); 173 wsPostRedisplay(&guiApp.videoWindow);
174 } 174 }
175 175
176 /* reload playbar */ 176 /* reload playbar */
177 177