Mercurial > mplayer.hg
comparison gui/win32/interface.c @ 37151:c63629427fde
Apply skin defaults in Win32 GUI.
The starting defaults for volume, balance and movie position are defined
in the skin used by the GUI. So far, the Win32 GUI has completely ignored
these.
Based on a patch by Stephen Sheldon, sfsheldo gmail com.
author | ib |
---|---|
date | Wed, 06 Aug 2014 16:35:38 +0000 |
parents | 8643426b12de |
children | 3dca2acb98ac |
comparison
equal
deleted
inserted
replaced
37150:67efc9d84be2 | 37151:c63629427fde |
---|---|
535 } | 535 } |
536 | 536 |
537 /* Wait until the gui is created */ | 537 /* Wait until the gui is created */ |
538 while(!mygui) Sleep(100); | 538 while(!mygui) Sleep(100); |
539 mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] GUI thread started.\n"); | 539 mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] GUI thread started.\n"); |
540 | |
541 guiInfo.Volume = mygui->default_volume; | |
542 guiInfo.Balance = mygui->default_balance; | |
540 } | 543 } |
541 | 544 |
542 void guiDone(void) | 545 void guiDone(void) |
543 { | 546 { |
544 if(mygui) | 547 if(mygui) |
634 else | 637 else |
635 { | 638 { |
636 guiInfo.AudioChannels = 0; | 639 guiInfo.AudioChannels = 0; |
637 guiInfo.AudioPassthrough = FALSE; | 640 guiInfo.AudioPassthrough = FALSE; |
638 } | 641 } |
642 guiSetEvent(evSetVolume); | |
643 guiSetEvent(evSetBalance); | |
639 if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow) | 644 if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow) |
640 ShowWindow(mygui->videowindow, SW_HIDE); | 645 ShowWindow(mygui->videowindow, SW_HIDE); |
641 break; | 646 break; |
642 } | 647 } |
643 case GUI_SET_CONTEXT: | 648 case GUI_SET_CONTEXT: |