comparison gui/interface.c @ 35739:6b82e3079aea

Remove unnecessary wsWindowBackground() calls. Add a necessary one to the video window's redraw handler.
author ib
date Wed, 23 Jan 2013 14:36:36 +0000
parents c2b6074cc28d
children bfe51acc36fb
comparison
equal deleted inserted replaced
35738:c2b6074cc28d 35739:6b82e3079aea
200 guiApp.videoWindow.ReDraw = (void *)uiVideoDraw; 200 guiApp.videoWindow.ReDraw = (void *)uiVideoDraw;
201 guiApp.videoWindow.MouseHandler = uiVideoMouseHandle; 201 guiApp.videoWindow.MouseHandler = uiVideoMouseHandle;
202 guiApp.videoWindow.KeyHandler = uiMainKeyHandle; 202 guiApp.videoWindow.KeyHandler = uiMainKeyHandle;
203 guiApp.videoWindow.DandDHandler = uiDandDHandler; 203 guiApp.videoWindow.DandDHandler = uiDandDHandler;
204 204
205 wsWindowBackground(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B);
206
207 if (guiApp.video.Bitmap.Image) 205 if (guiApp.video.Bitmap.Image)
208 wsImageConvert(&guiApp.videoWindow, guiApp.video.Bitmap.Image); 206 wsImageConvert(&guiApp.videoWindow, guiApp.video.Bitmap.Image);
209 207
210 btnModify(evSetVolume, guiInfo.Volume); 208 btnModify(evSetVolume, guiInfo.Volume);
211 btnModify(evSetBalance, guiInfo.Balance); 209 btnModify(evSetBalance, guiInfo.Balance);
869 867
870 gui(GUI_SET_STATE, (void *)GUI_STOP); 868 gui(GUI_SET_STATE, (void *)GUI_STOP);
871 869
872 wsEvents(); 870 wsEvents();
873 uiVideoRender = True; 871 uiVideoRender = True;
874 wsWindowBackground(&guiApp.videoWindow, guiApp.video.R, guiApp.video.G, guiApp.video.B);
875 wsWindowRedraw(&guiApp.videoWindow); 872 wsWindowRedraw(&guiApp.videoWindow);
876 wsMouseVisibility(&guiApp.videoWindow, wsShowMouseCursor); 873 wsMouseVisibility(&guiApp.videoWindow, wsShowMouseCursor);
877 } 874 }
878 875
879 break; 876 break;