hedgewars/uWorld.pas
changeset 7847 a595d4f4837d
parent 7841 43e68ac28d79
child 7850 fcbb024090a4
equal deleted inserted replaced
7846:77a6abce92b5 7847:a595d4f4837d
  1799 
  1799 
  1800 procedure onFocusStateChanged;
  1800 procedure onFocusStateChanged;
  1801 begin
  1801 begin
  1802 if (not cHasFocus) and (GameState <> gsConfirm) then
  1802 if (not cHasFocus) and (GameState <> gsConfirm) then
  1803     ParseCommand('quit', true);
  1803     ParseCommand('quit', true);
       
  1804 {$IFDEF MOBILE}
       
  1805 // when created SDL receives an exposure event that calls UndampenAudio at full power, muting audio
       
  1806 exit;
       
  1807 {$ENDIF}
  1804 
  1808 
  1805 {$IFDEF USE_VIDEO_RECORDING}
  1809 {$IFDEF USE_VIDEO_RECORDING}
  1806 // do not change volume during prerecording as it will affect sound in video file
  1810 // do not change volume during prerecording as it will affect sound in video file
  1807 if not flagPrerecording then
  1811 if not flagPrerecording then
  1808 {$ENDIF}
  1812 {$ENDIF}